Log::Localized 0.05
Sponsored Links
Log::Localized 0.05 Ranking & Summary
File size:
0.019 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1004
Date added:
2007-01-23
Publisher:
Erwan Lemonnier
Log::Localized 0.05 description
Log::Localized is a Perl module to localize your logging.
SYNOPSIS
What you most probably want to do is something like:
package Foo;
use Log::Localized;
sub bar {
# this message will be displayed if method bars verbosity is >= 1
llog(1,"running bar()");
}
# this message will be displayed if package Foos verbosity is >= 3
llog(3,"loaded package Foo");
Then paste the following local verbosity rules in a file called verbosity.conf, in the same directory as your program:
# log everything from wherever inside Foo and its subclasses, up to level 3
Foo:: = 3
# except for function Foo::foo who shall have verbosity 0
Foo::bar = 0
SYNOPSIS - ADVANCED
In a program accepting command line arguments, you may want to do:
use Getopt::Long;
use Log::Localized log => 1;
GetOptions("verbose|v+" => sub { $Log::Localized::VERBOSITY++; } );
llog(1,"you used -v");
llog(2,"you used -v -v");
You may alter local verbosity from within the running code:
package Foo;
use Log::Localized log => 1;
# verbosity level is 0 by default
{
# set verbosity locally in this block
local $Log::Debug::VERBOSITY = 5;
llog(5,"this will be logged");
}
debug(5,"but this wont");
If you want to import llog under another name in the calling module:
package Foo;
use Log::Localized rename => "my_log";
# call Log::Localized::llog()
my_log(1,"renamed llog()");
See the examples directory in the module distribution for more real life examples.
Log::Localized provides you with an interface for defining dynamically exactly which part of your code should log messages and with which verbosity.
Log::Localized addresses one issue of traditional logging: in very large systems, a slight increase in logging verbosity usually generates insane amounts of logs. Hence the need of being able to turn on verbosity selectively in some areas of code only, in a localized way.
Log::Localized is based on the concept of local verbosity. Each package and each function in a package has its own local verbosity, set to 0 by default. With Log::Localized you can change the local verbosity in just a function, just a package or just a class hierarchy via a so called verbosity rule. Verbosity rules are passed to Log::Localized either via a configuration file or via an import parameter. By changing verbosity rules according to the needs of the moment, you can alter your programs logging flow in a very fine-grained way, and get logs from only the code areas you are interested in.
Log::Localized comes with default settings that make it usable out of the box, but its configuration options will let you redefine pretty much everything in its behavior.
The actual logging in Log::Localized is handled by Log::Dispatch.
SYNOPSIS
What you most probably want to do is something like:
package Foo;
use Log::Localized;
sub bar {
# this message will be displayed if method bars verbosity is >= 1
llog(1,"running bar()");
}
# this message will be displayed if package Foos verbosity is >= 3
llog(3,"loaded package Foo");
Then paste the following local verbosity rules in a file called verbosity.conf, in the same directory as your program:
# log everything from wherever inside Foo and its subclasses, up to level 3
Foo:: = 3
# except for function Foo::foo who shall have verbosity 0
Foo::bar = 0
SYNOPSIS - ADVANCED
In a program accepting command line arguments, you may want to do:
use Getopt::Long;
use Log::Localized log => 1;
GetOptions("verbose|v+" => sub { $Log::Localized::VERBOSITY++; } );
llog(1,"you used -v");
llog(2,"you used -v -v");
You may alter local verbosity from within the running code:
package Foo;
use Log::Localized log => 1;
# verbosity level is 0 by default
{
# set verbosity locally in this block
local $Log::Debug::VERBOSITY = 5;
llog(5,"this will be logged");
}
debug(5,"but this wont");
If you want to import llog under another name in the calling module:
package Foo;
use Log::Localized rename => "my_log";
# call Log::Localized::llog()
my_log(1,"renamed llog()");
See the examples directory in the module distribution for more real life examples.
Log::Localized provides you with an interface for defining dynamically exactly which part of your code should log messages and with which verbosity.
Log::Localized addresses one issue of traditional logging: in very large systems, a slight increase in logging verbosity usually generates insane amounts of logs. Hence the need of being able to turn on verbosity selectively in some areas of code only, in a localized way.
Log::Localized is based on the concept of local verbosity. Each package and each function in a package has its own local verbosity, set to 0 by default. With Log::Localized you can change the local verbosity in just a function, just a package or just a class hierarchy via a so called verbosity rule. Verbosity rules are passed to Log::Localized either via a configuration file or via an import parameter. By changing verbosity rules according to the needs of the moment, you can alter your programs logging flow in a very fine-grained way, and get logs from only the code areas you are interested in.
Log::Localized comes with default settings that make it usable out of the box, but its configuration options will let you redefine pretty much everything in its behavior.
The actual logging in Log::Localized is handled by Log::Dispatch.
Log::Localized 0.05 Screenshot
Log::Localized 0.05 Keywords
Localized 0.05
localize your logging
to localize
Perl module
verbosity
package
LLOG
logging
log
local
Log::Localized
LogLocalized
Log::Localized 0.05
Libraries
Programming
Bookmark Log::Localized 0.05
Log::Localized 0.05 Copyright
WareSeeker periodically updates pricing and software information of Log::Localized 0.05 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Log::Localized 0.05 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
package shark
economic stimulus package 2008 tax rebates
define verbosity
packages from home
package tracking
verbosity definition
package delivery
vacation packages
logging equipment for sale
examples of verbosity
stimulus package
package piledriver
perl modules
package deals
package holidays
key logging
package design
logging trailers
Related Software
Log::Log4perl::AutoCategorize - extended Log::Log4perl logging. Free Download
Log::Log4perl is a Log4j implementation for Perl. Free Download
Pod::WSDL::Doc is a Perl module that represents the WSDL pod for the documentation of methods (internal use only). Free Download
SVN::Log::Index is a Perl module that can index and search over Subversion commit logs. Free Download
Coy is a Perl module like Carp only prettier. Free Download
passlogd is a purpose-built sniffer for capturing syslog messages in transit. Free Download
php syslog viewer is a free web application written in PHP for viewing and searching system logs stored in a MySQL database. Free Download
Tk::PerlMethodList is a Perl module to query the Symbol-table for methods (subroutines) defined in a class (package). Free Download
Latest Software
Popular Software
Favourite Software