logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: How Do I Find Out If log4j Has Been Configured?
Date Wed, 28 Apr 2004 13:06:33 GMT
At 02:50 PM 4/28/2004, you wrote:
>Hi all.
>How can I programmatically find out if log4j has already been 
>configured?  I configure log4j in my ejbCreate() method using 
>PropertyConfigurator.configure("myfile.properties").  I don't want this to 
>run every time my EJB container creates an instance of my bean 
>class.  I've looked in the book, the code, and the API docs, but I can't 
>find it.

In log4j 1.3, LoggerRepository has a method called isPristine. For log4j 
1.2.8, read pages 82 and 83 of the manual.


Ceki Gülcü

      For log4j documentation consider "The complete log4j manual"
      ISBN: 2970036908 http://www.qos.ch/shop/products/clm_t.jsp  

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message