lib/Catalyst/Log.pm
Matt S Trout [Thu, 8 Jun 2006 14:37:32 +0000 (14:37 +0000)]
r8876@cain (orig r4205):  matthewt | 2006-05-24 02:40:50 +0000

lib/Catalyst/Log.pm

index 89f39e7..616a678 100644 (file)
@@ -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