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/04 13:47:08 UTC
How Logger instanciation and LoggerRepository are related
I'm writing my own Configurator (based on the DOMConfigurator) and my own Logger and LoggerFactory to obtain centralized logging in a J2EE environment (by means of JMS/MDB).
This activity has emerged some questions about how the LoggerRepository hierarchy are configured.
When instantiating Logger I use my own MyLoggerFactory which gives me a MyLogger.
But if you ommit declaring class attribute of <logger> then Logger is default loaded.
The same default Logger is loaded even if you add a <categoryFactory> element in the property file.
But it always MyLogger that is used. How come?
Regards
Geir Antonsen
Consultant/developer
http://www.morecom.no
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: log4j-user-help@jakarta.apache.org