From: Mike S. <m...@pe...> - 2004-12-01 05:00:42
|
On Tue, 30 Nov 2004, Kevin Goess wrote: > You're right that it shouldn't be automatic, appenders shouldn't have > their thresholds lowered implicitly, if I set Threshold=ERROR on my > performance-intensive database appender I don't want it flooded with > debug messages. Makes sense ... I've chosen a slightly less-intrusive approach, here's the new docs: =head2 Modify appender thresholds To conveniently adjust appender thresholds (e.g. because a script uses more_logging()), use # decrease thresholds of all appenders Log::Log4perl->appender_thresholds_adjust(-1); This will decrease the thresholds of all appenders in the system by one level, i.e. WARN becomes INFO, INFO becomes DEBUG, etc. To only modify selected ones, use # decrease thresholds of all appenders Log::Log4perl->appender_thresholds_adjust(-1, ['AppName1', ...]); and pass the names of affected appenders in a ref to an array. -- Mike Mike Schilli m...@pe... |