Hi,

 

Our app, at start-up, configures using a 'bootstrap' log4j.boot.xml, and
then at a later point it re-configures using another log4j.xml. Both xml
files declare <root> logger with few appender references. 

 

With log4j 1.3 (alpha 8), we end up with messages going to all appenders
configured for <root> logger in BOTH xml files, contradicting the quote
below from the log4j manual. With log4j 1.2.*, messages get logged only to
the appenders specified in the last log4j.xml.

 

Is this a known issue or expected behaviour for log4j 1.3?

 

Thank you

 

QUOTE FROM MANUAL: "Similar to <logger> element, declaring a <root> element
will have the effect of first closing and then detaching all its current
appenders and only subsequently will referenced appenders, if any, will be
added. In particular, if it has no appender references, then the root logger
will lose all its appenders."

 

Reply via email to