Hi, The desired behaviour I wanted from log4j is to have ie. 2 appenders, and create loggers 1 and 2. Logger 1 writes to appender 1, logger 2 to appender 2.
Attached are the test files (welcome to use as an example). To achieve my goal, I had to remove the appenders from the root logger, and add them to the subclass loggers only... removeAllAppenders seems to close the appender, removeAppender does not... Anyhow, it works. Code attached FYI <<EAILogger.java>> <<Test.java>> <<metrica.log>> <<app.log>> <<config>>
EAILogger.java
Description: EAILogger.java
Test.java
Description: Test.java
metrica.log
Description: metrica.log
app.log
Description: app.log
config
Description: config
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>