logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Raghuveer V" <raghuve...@infotechsw.com>
Subject RE: locating my log4j.properties file
Date Fri, 08 Oct 2010 05:39:46 GMT
Place the property file in root package.


-----Original Message-----
From: Don Raikes [mailto:DON.RAIKES@ORACLE.COM] 
Sent: Friday, October 08, 2010 4:10 AM
To: log4j-user@logging.apache.org
Subject: locating my log4j.properties file

Hello,

I have a java project which I compile and then package in a jar file which
goes into my jdk_home\jre\lib\ext folder (it is an extension to my jdk).

In the main class of my application I tell log4j to use a specific
log4j.properties file 

PropertyConfigurator.configure("a11yMonitor-log4j.properties");

Where do I actually place the a11yMonitor-log4j.properties file?

I tried in jdk_home\jre\lib and jdk_home\jre\lib\ext but both times I tried
to run my extension, I get a message saying that log4j cannot find the
properties file.

Any help would be greatly appreciated.

-- 
Sincerely, 

HYPERLINK "http://www.oracle.com" \nOracle
Donald Raikes | Accessibility Specialist
Phone: HYPERLINK "tel:+16028246213"+16028246213 | Mobile: HYPERLINK
"tel:+15202717608"+15202717608 | VOIP: HYPERLINK
"tel:+16028246213"+16028246213 
Oracle JDeveloper Quality Assurance
| Tucson, Arizona 

HYPERLINK "http://www.oracle.com/commitment" \nGreen Oracle	 Oracle is
committed to developing practices and products that help protect the
environment	 


---------------------------------------------------------------------
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