logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@ewarna.com>
Subject Tomcat and Log4J
Date Mon, 30 Sep 2002 07:40:00 GMT

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:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message