I am sure this has been up before, but I can't find it in my archive.

What do I need to do to get Log4J to read my log4j.properties file???

Basic example, straight from docs;

# Set root logger level to DEBUG and its only appender to A2.
log4j.rootLogger=DEBUG, A2

log4j.appender.A2=org.apache.log4j.FileAppender
log4j.appender.A2.File=file:///tomcat/webapps/soap-service/logs/xzone.log
log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=%-5p [%t] %C{2} (%F:%L) - %m%n

(I have tried xzone.log as well as full paths.)

I have tried having log4j.jar in the WEB-INF/lib/, as well as in /tomcat/lib, 
but to no avail.

I keep getting the logger output to localhost.log, with the default 
formatting.


Close to nervous breakdown....
Niclas

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to