NAME

Log::AutoDump::Dummy - Do nothing.

VERSION

Version 0.20

SYNOPSIS

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.

 use Log::AutoDump::Dummy;

 my $log = $args{ log } || Log::AutoDump::Dummy->new;

DESCRIPTION

A dummy log object, that has the same methods, but does nothing;

METHODS

Class Methods

new

Creates a new dummy logger object.

 my $log = Log::AutoDump::Dummy->new;

Instance Methods

msg

 $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

trace

 $log->trace( "Trace some info" );

A trace statement is generally used for extremely low level logging, calling methods, getting into methods, etc.

debug

 $log->debug( "Debug some info" );

info

 $log->info( "Info about something" );

warn

 $log->warn( "Something not quite right here" );

error

 $log->error( "Something went wrong" );

fatal

 $log->fatal( "Looks like we died" );

TODO

simple scripts (the caller stack)

extend to use variations of Data::Dumper

AUTHOR

Rob Brown, <rob at intelcompute.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Log::AutoDump

You can also look for information at:

LICENSE AND COPYRIGHT

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.