Hello
start your programm with:
-Dlog4j.debug
This will show you information were it looks for your properties file.
It usually helps me in this case
Cheers
Christian
On Fri, Oct 8, 2010 at 12:39 AM, Don Raikes wrote:
> Hello,
>
> I have a java project which I compile and then package in a jar
Place the property file in root package.
-Original Message-
From: Don Raikes [mailto:don.rai...@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
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
If you have an appender of type
=org.apache.log4j.RollingFileAppender
which formats its info messages using =org.apache.log4j.PatternLayout
which has a ConversionPattern such as =%p %t %c - %m%n
then you get what you want
Below are some examples of co