From: Mike S. <m...@pe...> - 2009-05-19 02:08:40
|
On Mon, 18 May 2009, Jonathan Swartz wrote: > Is it possible to log a category to two appenders, but at different > levels? e.g. > > log4perl.logger.Foo = INFO, appender1 > log4perl.logger.Foo = DEBUG, appender2 > # Define appender1 and appender2 here That won't work, you need to do it this way: http://search.cpan.org/dist/Log-Log4perl/lib/Log/Log4perl/FAQ.pm#I_want_to_log_ERROR_and_WARN_messages_to_different_files!_How_can_I_do_that? -- Mike Mike Schilli m...@pe... |