Try the
following:
public static Category CAT =
org.apache.log4j.Category.getInstance(Log4jEmailTest.class.getName());
public static void main(String[]
args) { String fileName =
"c:/tmp/log4j.config"; File checkFile = new
File(fileName); if (fileName != null && new
HI
You can name the extention property file as the way
you like but as a general rule u may name it to *.properties as we can know in
future that this file is a property file.
How to use it.
1.If you are using Log4j for Stand alone
application then put in the directory from where u are runni
01 4:47 PM
Subject: Re: configuration problem.
HI
You can name the extention property file as the
way you like but as a general rule u may name it to *.properties as we can
know in future that this file is a property file.
How to use it.
1.If you are using Log4j for S
Looks good to me. Change
to
and see what happens.
Where have you placed the logconfig.xml file? Is it in WEB-INF/classes/ ?
At 12:56 11.09.2002 -0400, you wrote:
>When I run my web app I get:
>
>log4j:WARN No appenders could be found for logger (DoraLogger).
>log4j:WARN Please initialize
ers List
Subject: Re: configuration problem
Looks good to me. Change
to
and see what happens.
Where have you placed the logconfig.xml file? Is it in WEB-INF/classes/ ?
At 12:56 11.09.2002 -0400, you wrote:
>When I run my web app I get:
>
>log4j:WARN No appenders could be found for log
anything different.
>
>Yes, logconfig.xml is in WEB-INF/classes/.
>
>-Original Message-
>From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, September 11, 2002 12:57 PM
>To: Log4J Users List
>Subject: Re: configuration problem
>
>
>Looks good to me.
Any suggestions on what to check next?
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 1:30 PM
To: Log4J Users List
Subject: RE: configuration problem
debug=true makes log4j emit internal messages. The fact that you are not
seeing
r 11, 2002 1:30 PM
>To: Log4J Users List
>Subject: RE: configuration problem
>
>
>debug=true makes log4j emit internal messages. The fact that you are not
>seeing any change means that the config file (logconfig.xml) is not being
>read.
>
>At 13:24 11.09.2002 -0400
This indicates to me a resource or timing
issue--I think.
Can anyone help?
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 1:40 PM
To: Log4J Users List
Subject: RE: configuration problem
Check that the JVM that launches Tomcat sees your op