Keep It Simple, Stupid | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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?
In reply to Log::Log4perl syslog wall best practice by codeacrobat
|
|