tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nehal Sangoi" <nehal.san...@patni.com>
Subject enable log4j
Date Mon, 21 Nov 2005 10:18:12 GMT

Hi,

I want to enable log4j logger in one of my tomcat instances. I copied
"log4j-1.2.12.jar" to my webapps - war file.
This means, under WEB-INF/lib, copied jar file and under WEB-INF/classes,
copied log4j.properties. Later, re-sreated warfile and started my tomcat
instance.

log4j.properties :

log4j.rootLogger=debug, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.base}/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.org.apache.catalina=DEBUG, R

Also, notice that i have tomcat 5.5.9 on solaris 10. But my jar file is
log4j-1.2.12.jar.

Is there anything 'm doing wrong or incomplete?....

Please help as soon as possible....

Thanks.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message