On Wed, 9 Jan 2013, Lee Goddard wrote: > Is there a way to change the PatternLayout that the default Catalyst uses?
According to the Catalyst::Log::Log4perl code you can pass in your own configuration file to specify a different layout and appender: unless ( Log::Log4perl->initialized ) { if ( defined($config) ) { if ($watch_delay) { Log::Log4perl::init_and_watch( $config, $watch_delay ); } else { Log::Log4perl::init($config); } } else { my $log = Log::Log4perl->get_logger(""); my $layout = Log::Log4perl::Layout::PatternLayout->new( "[%d] [catalyst] [%p] %m%n"); my $appender = Log::Log4perl::Appender->new( "Log::Log4perl::Appender::Screen", 'name' => 'screenlog', 'stderr' => 1, ); -- -- Mike Mike Schilli m...@perlmeister.com ------------------------------------------------------------------------------ Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122912 _______________________________________________ log4perl-devel mailing list log4perl-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/log4perl-devel