风为裳

导航

log4j的一些配置

#!!注意:You are not allowed to modify this file!Keep away from it because of its importance!20110703,qibaoyuan,modify

#write all the logs to the specified destination log4j.rootLogger=info,A1,R

#显示hibernate的参数 log4j.logger.org.hibernate.type=TRACE log4j.logger.org.hibernate.sql=TRACE

#A1:Console appender log4j.appender.A1=org.apache.log4j.ConsoleAppender log4j.appender.A1.layout=org.apache.log4j.PatternLayout log4j.appender.A1.Threshold=debug log4j.appender.A1.layout.ConversionPattern=%-d{yyyy-MM-dd HH:mm:ss,SSS} [%c]-[%p] %m%n

#R:File log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.File=${webApp.root}/WEB-INF/logs/backup.log log4j.appender.R.DatePattern = '.'yyyy-MM-dd log4j.appender.R.Threshold=debug log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%-d{yyyy-MM-dd HH\:mm\:ss} [%c]-[%p] %m%n

 

 

 

 

posted on 2012-02-01 23:07  风为裳  阅读(168)  评论(0编辑  收藏  举报