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 Sridharan Vembu <Sr...@infosys.com> on 2002/05/29 07:57:18 UTC
Logger Instance
Hi All,
I'm subclassing the Logger class using the LoggerFactory class. And I've overridden the getLogger() call, so that it would take one more String argument which I'm storing it in the myLogger as a static datameber. This datamember I'm supplying the value when I start the application.
I've turned on the debugging info flag.
I'm using the configureAndWatch method of DOMConfigurator for my application. If I change a Option in the Appender, then from my understanding to doConfigure method will be called with this updated Configuration File. So, this time it will be retrieving an instance of the same logger right?
But, the datamember which I set earlier returned me null this time.
I'm using log4j1.2.3 version with JDK1.3.1 on windows2000 machine.
Could somebody tell me why is this happening or am I doing anything wrong?Would highly appreciate your response.
Thanks & Regards
Sridharan Vembu
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>