LWP::Debug man page on BSDOS

Man page or keyword search:  
man Server   6284 pages
apropos Keyword Search (all sections)
Output format
BSDOS logo
[printable version]



lib::LWP::DebugUser Contributed Perl Documentatlib::LWP::Debug(3)

NAME
       LWP::Debug - debug routines for the libwww-perl library

SYNOPSIS
	use LWP::Debug qw(+ -conns);

	# Used internally in the library
	LWP::Debug::trace('send()');
	LWP::Debug::debug('url ok');
	LWP::Debug::conns("read $n bytes: $data");

DESCRIPTION
       LWP::Debug provides tracing facilities. The trace(),
       debug() and conns() function are called within the library
       and they log information at increasing levels of detail.
       Which level of detail is actually printed is controlled
       with the level() function.

FUNCTIONS
       level(...)

       The level() function controls the level of detail being
       logged. Passing '+' or '-' indicates full and no logging
       respectively. Inidividual levels can switched on and of by
       passing the name of the level with a '+' or '-' prepended.
       The levels are:

	 trace	 : trace function calls
	 debug	 : print debug messages
	 conns	 : show all data transfered over the connections

       The LWP::Debug module provide a special import() method
       that allows you to pass the level() arguments with initial
       use statement.  If a use argument start with '+' or '-'
       then it is passed to the level function, else the name is
       exported as usual.  The following two statements are thus
       equivalent (if you ignore that the second pollutes your
       namespace):

	 use LWP::Debug qw(+);
	 use LWP::Debug qw(level); level('+');

       trace($msg)

       The trace() function is used for tracing function calls.
       The package and calling subroutine name is printed along
       with the passed argument. This should be called at the
       start of every major function.

24/Aug/1997	       perl 5.005, patch 03			1

lib::LWP::DebugUser Contributed Perl Documentatlib::LWP::Debug(3)

       debug($msg)

       The debug() function is used for high-granularity
       reporting of state in functions.

       conns($msg)

       The conns() function is used to show data being
       transferred over the connections. This may generate
       considerable output.

24/Aug/1997	       perl 5.005, patch 03			2

[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server BSDOS

List of man pages available for BSDOS

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net