X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FLog.pm;h=f2a6aee5aca243690f171ce3cdfb80804257eee0;hb=a268a0112398ac10d8fabd86ed28a183cbe4398e;hp=4ae49a011fce536ed2d5f44bfdf694fce061f707;hpb=1db849bca74f33b8daa85b694fffb8b92d03ecd6;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index 4ae49a0..f2a6aee 100644 --- a/lib/Catalyst/Log.pm +++ b/lib/Catalyst/Log.pm @@ -22,8 +22,10 @@ See L. =head1 DESCRIPTION -This module provides the default, simple logging functionality for Catalyst. -If you want something different set C<$c->log> in your application module, e.g.: +This module provides the default, simple logging functionality for +Catalyst. +If you want something different set C<$c->log> in your application +module, e.g.: $c->log( MyLogger->new ); @@ -42,8 +44,6 @@ Logs a debugging message. sub debug { shift->_format( 'debug', @_ ) } -sub dump { shift->_format( 'dump', Dumper( $_[1] ) ) } - =item $log->error(@message) Logs an error message. @@ -78,6 +78,12 @@ sub _format { =back +=cut + +# Private - Logs a Data::Dumper of reference. +sub _dump { shift->_format( 'dump', Dumper( $_[0] ) ) } + + =head1 SEE ALSO L. @@ -85,11 +91,12 @@ L. =head1 AUTHOR Sebastian Riedel, C +Marcus Ramberg, C =head1 COPYRIGHT -This program is free software, you can redistribute it and/or modify it under -the same terms as Perl itself. +This program is free software, you can redistribute it and/or modify +it under the same terms as Perl itself. =cut