codeacrobat has asked for the wisdom of the Perl Monks concerning the following question:
I am using Log::Log4perl with a Syslog appender in :easy mode. Currently I am flooded with Syslog messages whenever I LOGDIE LOGCROAK LOGEXIT in a script, as all of them log on FATAL severity.
I don't want the wall messages for my interactive scripts. What I am looking for is an easy tweak in Log::Log4perl or in rsyslog.conf to get rid of it.
The best I came up with is to make use of the $logger->error_die method, which is unfortunately not available in :easy mode.
There is also a ticket on rt.cpan.org to discuss the issue. https://rt.cpan.org/Public/Bug/Display.html?id=75781
Does anyone have a practical / better solution this?
print+qq(\L@{[ref\&@]}@{['@'x7^'!#2/"!4']});
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Log::Log4perl syslog wall best practice
by polettix (Vicar) on Mar 20, 2012 at 07:36 UTC | |
Re: Log::Log4perl syslog wall best practice
by mull (Monk) on Mar 20, 2012 at 13:09 UTC | |
by codeacrobat (Chaplain) on Mar 20, 2012 at 19:27 UTC |