标签:ati oci web sof rap console pen fat log
OFF FATAL ERROR WARN INFO DEBUG ALLlog4j.rootCategory=INFO, stdout , R
###org.apache.log4j.ConsoleAppender\uff08\u63a7\u5236\u53f0\uff09\uff0corg.apache.log4j.FileAppender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#org.apache.log4j.HTMLLayout \u4ee5HTML\u8868\u683c\u5f62\u5f0f\u5e03\u5c40
#org.apache.log4j.PatternLayout \u53ef\u4ee5\u7075\u6d3b\u7684\u6307\u5b9a\u5e03\u5c40\u6a21\u5f0f
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[QC] %d{yyyy-MM-dd HH:mm:ss SSS} %p [%t] %C.%M(%L) | %m%n
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.File=F:\javalog\qc.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d-[TS] %p %t %c - %m%n
#\u6307\u5b9a com.neusoft \u5305\u4e0b\u6240\u6709\u7c7b\u7684\u7b49\u7ea7\u4e3adebug \u53ef\u4ee5\u628a com.neusoft\u6539\u4e3a\u81ea\u5df1\u9879\u76ee\u6240\u7528\u5305\u540d
#log4j.logger.com.neusoft=DEBUG
#\u8fd9\u4e24\u53e5\u662f\u628a\u8fd9\u4e24\u4e2a\u5305\u4e0b\u51fa\u73b0\u7684\u9519\u8bef\u7b49\u7ea7\u8bbe\u4e3aerror\uff0c\u5982\u679c\u9879\u76ee\u4e2d\u6ca1\u6709\u914d\u7f6eEHCache\uff0c\u5219\u4e0d\u9700\u8981\u8fd9\u4e24\u53e5
#log4j.logger.com.opensymphony.oscache=ERROR
#log4j.logger.net.sf.navigator=ERROR
#\u8fd9\u4e24\u53e5\u662fstruts\u7684\u5305
#log4j.logger.org.apache.commons=ERROR
#log4j.logger.org.apache.struts=WARN
#\u8fd9\u53e5\u662fdisplaytag\u7684\u5305
log4j.logger.org.displaytag=ERROR
log4j.logger.org.springframework=DEBUG
log4j.logger.com.ibatis.db=WARN
log4j.logger.org.apache.velocity=FATAL
log4j.logger.com.canoo.webtest=WARN
log4j.logger.org.hibernate.ps.PreparedStatementCache=WARN
log4j.logger.org.hibernate=DEBUG
log4j.logger.org.logicalcobwebs=WARN
标签:ati oci web sof rap console pen fat log
原文地址:http://blog.51cto.com/6000734/2347609