You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Geir Antonsen <ge...@morecom.no> on 2003/06/05 15:06:47 UTC

DOMConfigurator and LoggerFactory

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