It's also possible to remove appenders from a logger:
$logger->remove_appender($appender_name);
will remove an appender, specified by name, from a given
logger. Please note that this does not remove an
appender from the system.
To eradicate an appender from the system, you need to call
Log::Log4perl->eradicate_appender($appender_name)
which will first remove the appender from every logger
in the system and then will delete all references
Log4perl holds to it.
In reply to Re^2: How to turn off a Log4perl appender?
by saintmike
in thread How to turn off a Log4perl appender?
by mifflin
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |