logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: How Do I Find Out If log4j Has Been Configured?
Date Wed, 28 Apr 2004 17:52:46 GMT
Quoting Robert Pepersack <rpepersack@mdinsurance.state.md.us>:

> Where can I get log4j 1.3?  Is it in beta?
> 

It isn't released as a binary yet.  You can check out the latest CVS.  There are
ways to figure out if Log4j has been configured in 1.2.x.  Try this...

http://wiki.apache.org/logging-log4j/Log4JProjectPages/UsefulCode

Look down the page a bit for the code.  It isn't bullet proof, but may work for
what you need.


Jake


> Thanks,
> 
> Bob
> 
> At 03:06 PM 04/28/2004 +0200, you wrote:
> >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: log4j-user-unsubscribe@logging.apache.org
> >For additional commands, e-mail: log4j-user-help@logging.apache.org
> 
> Bob Pepersack
> 410-468-2054
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org

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


Mime
View raw message