I'm trying to use XML configuration for log4j but it is failing with message:
"log4j:ERROR Attempted to append to closed appender named [Console]."

Checking the source, I''ve found class DOMConfigurator, method
parseChildrenOfLoggerElement, lines

398    // Remove all existing appenders from cat. They will be
399    // reconstructed if need be.
400    cat.removeAllAppenders();

...that calls close() method for the appenders. Since my xml
contains Logger/Category elements, that line will be executed
and the appender closed. Is it a bug????
If not, when would the appenders be reconstructed?!

Regards,
Diego

--------------------------------------------
Diego Ballve
Product Manager, Republica Ltd.
Ohjelmakaari 1, 40500 Jyv�skyl�, Finland
E-mail: [EMAIL PROTECTED]
GSM: +358 50 490 6435
http://www.republica.fi/
http://www.x-fetch.com/


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to