Tomcat5.5.x配置整理 - 配置日志

在D:\jakarta-tomcat-5.5.8\common\classes\新建log4j.properties

内容:

  1. log4j.rootLogger=debug, R    
  2. log4j.appender.R=org.apache.log4j.RollingFileAppender    
  3. log4j.appender.R.File=${catalina.home}/logs/tomcat5.5.log    
  4. log4j.appender.R.MaxFileSize=10MB    
  5. log4j.appender.R.MaxBackupIndex=10    
  6. log4j.appender.R.layout=org.apache.log4j.PatternLayout    
  7. log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n    
  8. log4j.logger.org.apache.catalina=DEBUG, R   
  9. log4j.logger.org.apache.catalina.core.ContainerBase.Catalina.localhost=DEBUG, R    
  10. log4j.logger.org.apache.catalina.core=DEBUG, R    
  11. log4j.logger.org.apache.catalina.session=DEBUG, R  
log4j.rootLogger=debug, R 
log4j.appender.R=org.apache.log4j.RollingFileAppender 
log4j.appender.R.File=${catalina.home}/logs/tomcat5.5.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
log4j.logger.org.apache.catalina.core.ContainerBase.Catalina.localhost=DEBUG, R 
log4j.logger.org.apache.catalina.core=DEBUG, R 
log4j.logger.org.apache.catalina.session=DEBUG, R

复制log4j-1.2.9.jar和commons-logging.jar到
D:\jakarta-tomcat-5.5.8\common\lib

你可能感兴趣的:(apache,tomcat,C++,c,log4j)