Log::AutoDump::Dummy - Do nothing.
Version 0.21
If a sub is hoping to be passed a log object, but isn't sure, use this as a fallback, so calls to debug() for example don't cause errors.
debug()
use Log::AutoDump::Dummy; my $log = $args{ log } || Log::AutoDump::Dummy->new;
A dummy log object, that has the same methods, but does nothing;
Creates a new dummy logger object.
my $log = Log::AutoDump::Dummy->new;
$log->msg(2, "Hello");
This method expects a log level as the first argument, followed by a list of log messages/references/objects.
This is the core method called by the following (preferred) methods, using the below mapping...
TRACE => 5 DEBUG => 4 INFO => 3 WARN => 2 ERROR => 1 FATAL => 0
$log->trace( "Trace some info" );
A trace statement is generally used for extremely low level logging, calling methods, getting into methods, etc.
trace
$log->debug( "Debug some info" );
$log->info( "Info about something" );
$log->warn( "Something not quite right here" );
$log->error( "Something went wrong" );
$log->fatal( "Looks like we died" );
simple scripts (the caller stack)
extend to use variations of Data::Dumper
Rob Brown, <rob at intelcompute.com>
<rob at intelcompute.com>
Please report any bugs or feature requests to bug-log-autodump at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Log-AutoDump. I will be notified, and then you will automatically be notified of progress on your bug as I make changes.
bug-log-autodump at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Log::AutoDump
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Log-AutoDump
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Log-AutoDump
CPAN Ratings
http://cpanratings.perl.org/d/Log-AutoDump
Search CPAN
http://search.cpan.org/dist/Log-AutoDump/
Copyright 2012 Rob Brown.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Log::AutoDump, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::AutoDump
CPAN shell
perl -MCPAN -e shell install Log::AutoDump
For more information on module installation, please visit the detailed CPAN module installation guide.