X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst%2FLog.pm;h=616a67833f1681ffceef516d04451e3171fe4a55;hp=89f39e7af8cba80258ae8186f0897494fd419d19;hb=397be44726e41ec80dc171df4317ddacd21d439c;hpb=64ccd8a8bfbc16276c044c94702b1440c2897695 diff --git a/lib/Catalyst/Log.pm b/lib/Catalyst/Log.pm index 89f39e7..616a678 100644 --- a/lib/Catalyst/Log.pm +++ b/lib/Catalyst/Log.pm @@ -121,6 +121,15 @@ e.g.: $c->log( MyLogger->new ); Your logging object is expected to provide the interface described here. +Good alternatives to consider are Log::Log4Perl and Log::Dispatch. + +If you want to be able to log arbitrary warnings, you can do something along +the lines of + + $SIG{__WARN__} = sub { MyApp->log->warn(@_); }; + +however this is (a) global, (b) hairy and (c) may have unexpected side effects. +Don't say we didn't warn you. =head1 LOG LEVELS