From: Mike S. <msc...@ao...> - 2003-10-13 20:15:15
|
Schmidtchen, Jens wrote on 10/13/2003, 12:19 PM: > could you please let me know, if the following can be achieved at all? > assume several (given) classes each of which with their own logger. Ok, that's pretty common. > these > loggers should catch ERRORS only. but in addition all DEBUG messages > should > be caught too and be recorded into another destination. To split output by level, use a custom filter, here's the FAQ: http://log4perl.sourceforge.net/releases/Log-Log4perl/docs/html/Log/Log4perl/FAQ.html#i_want_to_log_error_and_warn_messages_to_different_files!_how_can_i_do_that You will need to specify the logger's level equal to the lowest priority of messages, DEBUG in your case, though. > in general: the > level of the uppermost logger is less restrictive than the levels of the > other ones. IMHO the problem is that the uppermost logger can't > receive any > DEBUG message from its descendant since they suppress any non-ERROR > message. This should be taken care of by the configuration outlined above, right? -- -- Mike Mike Schilli m...@pe... |