tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Volodymyr Bezuglyy <v...@isd.dp.ua>
Subject How to setup logging in Tomcat for WebappClassLoader?
Date Mon, 12 Mar 2012 13:02:12 GMT
Hello.

I am trying to setup logging in Tomcat according to http://tomcat.apache.org/tomcat-5.5-doc/logging.html.
I created file Tomcat5\common\classes\log4j.properties:
log4j.rootLogger=WARN, R 
log4j.appender.R=org.apache.log4j.RollingFileAppender 
log4j.appender.R.File=${catalina.home}/logs/tomcat.log 
log4j.appender.R.MaxFileSize=500MB 
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.loader=DEBUG, C
log4j.appender.C=org.apache.log4j.RollingFileAppender 
log4j.appender.C.File=${catalina.home}/logs/cl.log 
log4j.appender.C.MaxFileSize=500MB 
log4j.appender.C.MaxBackupIndex=10 
log4j.appender.C.layout=org.apache.log4j.PatternLayout 
log4j.appender.C.layout.ConversionPattern=%p %t %c - %m%n

I would like to see traces from method loadClass of org.apache.catalina.loader.WebappClassLoader
class.
But there are only traces from org.apache.catalina.loader.WebappLoader in ${catalina.home}/logs/cl.log
file.

Can someone explain why there are no any traces from WebappClassLoader and how turn them on?

Thank you,
Vladimir Bezugliy.

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


Mime
View raw message