log4j-user  

How to show the current location of the log4j.properties file from inside Java?

Ben Stover
Thu, 19 Aug 2010 01:57:03 -0700

Assume I use Log4j from inside a java program/bean and I want to find out which 
of the several log4j,properties
files are currently used for log4j.configuration.

Can I somehow get this information from inside the java program?
I can think of a command like

log.showpropfilelocation();

or similar. Is this possible?

ben



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

  • How to show the current location of the log4j.properties file from inside Java? Ben Stover