dtRdr::Logger 0.0.11
Sponsored Links
dtRdr::Logger 0.0.11 Ranking & Summary
File size:
2.8 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
952
Date added:
2007-03-16
Publisher:
Eric Wilhelm
dtRdr::Logger 0.0.11 description
dtRdr::Logger is a Perl module for global logging.
SYNOPSIS
use dtRdr::Logger;
L->debug($message, ...);
L->info($message, ...);
L->warn($message, ...);
L->error($message, ...);
L->fatal($message, ...);
For a stacktrace:
sub bar {
L()->logcluck("foo");
}
See Log::Log4perl for more info.
ABOUT
This (currently) installs a $SIG{__WARN__}, though well probably try to move away from that.
import
dtRdr::Logger->import(@args);
Get Logger
L
A shortcut to return a logger object FOR YOUR NAMESPACE with an optional list of subtags.
L($subtag);
Example:
package My::Package;
my $logger = L;
my $logger = L(#foo);
Now $logger will log into the class log4perl.logger.My.Package.#foo.
$subtag MUST start with a #. If this is omitted, it will be changed.
RL
A shortcut to a root-level logger.
RL($tag);
my $logger = RL(#foo);
Now $logger which will log into the class log4perl.logger.#foo.
$tag MUST start with a #. If this is omitted, it will be changed.
editor
Launches $ENV{THOUT_EDITOR} with a tempfile containing $string.
Just a handy way to get some debugging data into an editor.
dtRdr::Logger->editor($string);
Or, to do lazy evaluation only when needed, pass a sub that returns a string.
dtRdr::Logger->editor(sub {do_stuff_that_takes_time()});
DBG_DUMP
Similar to editor, but writes to a tempfile in "/tmp/$filename".
DBG_DUMP($ENV_NAME, $filename, sub {$content});
Only acts if $ENV{"DBG_$ENV_NAME"} is set.
DBG_FOO=1 ./Build test
...will cause this
DBG_DUMP(foo, thisfile.txt, sub {$blah});
...to write the content of $blah to /tmp/thisfile.txt.
The sub {$thing} thing is a speed hack, but that variable is big enough to make you want to open it in an editor, so...
init
dtRdr::Logger->init(filename => "foo");
SYNOPSIS
use dtRdr::Logger;
L->debug($message, ...);
L->info($message, ...);
L->warn($message, ...);
L->error($message, ...);
L->fatal($message, ...);
For a stacktrace:
sub bar {
L()->logcluck("foo");
}
See Log::Log4perl for more info.
ABOUT
This (currently) installs a $SIG{__WARN__}, though well probably try to move away from that.
import
dtRdr::Logger->import(@args);
Get Logger
L
A shortcut to return a logger object FOR YOUR NAMESPACE with an optional list of subtags.
L($subtag);
Example:
package My::Package;
my $logger = L;
my $logger = L(#foo);
Now $logger will log into the class log4perl.logger.My.Package.#foo.
$subtag MUST start with a #. If this is omitted, it will be changed.
RL
A shortcut to a root-level logger.
RL($tag);
my $logger = RL(#foo);
Now $logger which will log into the class log4perl.logger.#foo.
$tag MUST start with a #. If this is omitted, it will be changed.
editor
Launches $ENV{THOUT_EDITOR} with a tempfile containing $string.
Just a handy way to get some debugging data into an editor.
dtRdr::Logger->editor($string);
Or, to do lazy evaluation only when needed, pass a sub that returns a string.
dtRdr::Logger->editor(sub {do_stuff_that_takes_time()});
DBG_DUMP
Similar to editor, but writes to a tempfile in "/tmp/$filename".
DBG_DUMP($ENV_NAME, $filename, sub {$content});
Only acts if $ENV{"DBG_$ENV_NAME"} is set.
DBG_FOO=1 ./Build test
...will cause this
DBG_DUMP(foo, thisfile.txt, sub {$blah});
...to write the content of $blah to /tmp/thisfile.txt.
The sub {$thing} thing is a speed hack, but that variable is big enough to make you want to open it in an editor, so...
init
dtRdr::Logger->init(filename => "foo");
dtRdr::Logger 0.0.11 Screenshot
dtRdr::Logger 0.0.11 Keywords
DBG
Logger 0.0.11
ENV
DUMP
RL
Perl module
for Global
logger
editor
sub
message
L-
l
dtRdr::Logger
dtRdrLogger
dtRdr::Logger 0.0.11
Bookmark dtRdr::Logger 0.0.11
dtRdr::Logger 0.0.11 Copyright
WareSeeker periodically updates pricing and software information of dtRdr::Logger 0.0.11 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 dtRdr::Logger 0.0.11 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
Related Software
dtRdr::User.pm is a user class as a Perl module. Free Download
dtRdr::Config is a Perl module with Factory class for configuration system. Free Download
dtRdr::Hack is a Perl module with self-documenting adaptive finger-wagging global vars. Free Download
dtRdr::GUI::Wx::BVManager is a container of sorts. Free Download
dtRdr::Plugins::Library is a Perl module that can handle library plugins. Free Download
dtRdr::GUI::Wx::SearchTree is a Perl module that can display search results as a tree. Free Download
dtRdr::GUI::Wx::Plugins are plugins for the wx gui. Free Download
dtRdr::Traits::Class is a Perl module with shared OO stuff. Free Download
Latest Software
Popular Software
Favourite Software