From: Sebastian Riedel Date: Wed, 2 Mar 2005 21:56:33 +0000 (+0000) Subject: stuff stuff stuff X-Git-Tag: 5.7099_04~1789 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=9b2bc37b4bcee56036419a392d922f053a130420 stuff stuff stuff --- diff --git a/Changes b/Changes index f3cc0c5..7f81187 100644 --- a/Changes +++ b/Changes @@ -2,6 +2,7 @@ This file documents the revision history for Perl extension Catalyst. 4.12 Wed Mar 02 11:00:00 2005 - server_base sucks, removed + - added $c->log->dump() 4.11 Wed Mar 02 11:00:00 2005 - removed some warnings diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index 7ae9f07..d7776f3 100644 --- a/lib/Catalyst/Log.pm +++ b/lib/Catalyst/Log.pm @@ -2,6 +2,9 @@ package Catalyst::Log; use strict; use base 'Class::Accessor::Fast'; +use Data::Dumper; + +$Data::Dumper::Terse = 1; =head1 NAME @@ -25,6 +28,14 @@ Log debug informations. sub debug { _format( 'debug', $_[1] ) } +=head3 dump + +Dump stuff. + +=cut + +sub dump { _format( 'dump', Dumper( $_[1] ) ) } + =head3 error Log error informations.