rootcho has asked for the wisdom of the Perl Monks concerning the following question:
The only way I was able to direct ERRORS to separate file was to use :log4perl.rootLogger log4perl.logger log4perl.category
Next step will be to save errors only at errorsAppender , I think I had to use 'additivity'!?'log4perl.rootLogger' => 'DEBUG, Screen,AppLog', 'log4perl.rootLogger.ERRORS' => 'ERROR, errorsAppender'
'log4perl.rootLogger' => 'DEBUG, Screen,AppLog,errors', 'log4perl.filter.MatchErr' => 'Log::Log4perl::Filter::LevelM +atch', 'log4perl.filter.MatchErr.LevelToMatch' => 'ERROR', 'log4perl.filter.MatchErr.AcceptOnMatch' => 'true', 'log4perl.appender.errors.Filter' => 'MatchErr',
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Log4j logger's
by Anonymous Monk on Mar 16, 2011 at 20:36 UTC | |
|
Re: Log4j logger's
by Anonymous Monk on Mar 16, 2011 at 20:08 UTC |