I have generally loaded only the appenders I wanted at startup ... but it seems to me (and this is untested) that you could use the warp_message property in Log::Log4perl::Appender to specify an on-the-fly subroutine that would suppress the appender (by returning nothing). Alternatively, you might be able to suppress the appender by nullifying its layout property. These both seem like hacks ... I'm hoping someone will answer with something a little more elegant.
In reply to Re: How to turn off a Log4perl appender?
by ptum
in thread How to turn off a Log4perl appender?
by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |