Is there a bug in the DOMConfigurator ?

When parsing <logger> elements, (inside the parseCategory() method) the Loader class 
loader is always used to instantiate a Logger via reflection. The LoggerFactory class, 
if specified in <categoryFactory> element, is not used to instantiate the Logger! 

You have to use <category> element with "class" attribute to instantiate other logger 
class than the Logger. The understand the <category> element is not to be used since 
it is not mentioned in the log4j complete manual.

Any experiences!

 

TIA.

/Geir Antonsen 

 

 

Reply via email to