Look at Catalyst::Log::Log4perl if you want to send debugging output somewhere different than stderr. I have this in MyApp.pm just before my setup() call: unless ( $ENV{LOG4PERL} && $ENV{LOG4PERL} eq 'local' ) { require Catalyst::Log::Log4perl; __PACKAGE__->log( Catalyst::Log::Log4perl->new( __PACKAGE__->path_to('log4perl.conf') . '' ) ); } and then my log4perl.conf file: log4perl.rootLoggerÞBUG, LOGFILE log4perl.appender.LOGFILE=Log::Log4perl::Appender::File -- Peter Karman
↧