I want to configure an appender at startup and then dynamically add and remove it from various loggers on demand. I'd prefer to have log4j configure this appender itself, and just grab a reference to it when needed. If that's not possible, I'll have to instantiate the appender myself and hold onto it.
question from:https://stackoverflow.com/questions/1909871/how-can-i-access-the-configured-log4j-appenders-at-runtime