I am trying to set log4j under tomcat to log certain java packages to certain logs. My properties file is:
---------------------------------------------------------------------------------
log4j.rootLogger=info, R, T
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=${catalina.home}/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=INFO, R
log4j.appender.T=org.apache.log4j.RollingFileAppender log4j.appender.T.File=${catalina.home}/logs/xtap.log log4j.appender.T.MaxFileSize=10MB log4j.appender.T.MaxBackupIndex=10 log4j.appender.T.layout=org.apache.log4j.PatternLayout log4j.appender.T.layout.ConversionPattern=%p %t %c - %m%n
log4j.logger.net.tutim=DEBUG, T -------------------------------------------------------------------------------- I would want all the "net.tutim.*" classes to log to T. but they log to R. Can someone help me with that?
Cheers, Ron
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]