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.


Thanks,

Bob

-- 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to