Hi Henrik,
Try;
DOMConfigurator.configureAndWatch(YourClass.class.getResource(xml/log4j.xml));
for log4j.xml
Or
PropertyConfigurator.configureAndWatch(YourPropertyFile);
for log4j.properties
Is there a way that I can get the filename and absolute path for the
file used to configure
-Original Message-
From: Henrik Vendelbo [mailto:[EMAIL PROTECTED]
Sent: Saturday, September 27, 2003 9:31 PM
To: [EMAIL PROTECTED]
Subject: getConfigurationFileName()
Is there a way that I can get the filename and absolute path for the
file
used to configure log4j. Once I am up
Is there a way that I can get the filename and absolute path for the file
used to configure log4j. Once I am up and running, I would like to be able
to check that I am indeed using the right configuration file.
-
To
I agree that this would be a helpful way to determine what log4j config
file log4j uses (.properties or .xml). However I have found my problem in
figuring out which config file to be even a bit more complex than which
file since I am usually loading log4j.xml form jar files it is always in
the