Eric,
If you are sure that no existing settings should be kept, you can wipe the
entire existing configuration out with the command:
LogManager.resetConfiguration();
This will cause all open appenders to be closed.
I previously made a request that there be an option to close all appenders
associated to loggers when the logger was reconfigured, but got no
response. From memory, I do not think there is a way to close an open
appender without the above call. I still think it would be useful so that
I didn't have to be so heavy handed with the
LogManager.resetConfiguration(); call.
--
Tom Goetze
"Fenderbosch, Eric" <[EMAIL PROTECTED]>
10/26/2004 08:02 AM
Please respond to "Log4J Users List"
To: "Log4J Users List" <[EMAIL PROTECTED]>
cc:
Subject: RE: Attempted to append to closed appender
I've read that a couple times before and just read it again. I don't
understand what you are trying to get me to see in there.