I was trying to find out where my logging output was going in a J2EE
application [WebSphere _and_ ATG Dynamo - things just don't get any
uglier than that]

When I enabled log4j.debug, I saw that the log4j system was being
initialized twice, once by my log4j.xml and a second time from a
log4j.properties file inside a library.

The library is explicitly calling
BasicConfigurator.resetConfiguration() ;
And then reconfiguring from its own internal copy of log4j.properties,
which does nothing useful for my debugging.

So, I'm now looking for one of two things, either:

A way to initialize the log4j system that can block later attempts to
reconfigure it

or

A simple test that I can persuade the library author to implement that
will say 'its already configured - don't do anything'. Like performing
a LogManager.getCurrentLoggers() and seeing if it contains anything.
[its a political impossibility for me to alter the library source
code].

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to