码迷,mamicode.com
首页 > 编程语言 > 详细

java_log4j

时间:2019-01-29 18:05:43      阅读:149      评论:0      收藏:0      [点我收藏+]

标签:ati   oci   web   sof   rap   console   pen   fat   log   

OFF FATAL ERROR WARN INFO DEBUG ALL

log4j.rootCategory=INFO, stdout , R

###org.apache.log4j.ConsoleAppender\uff08\u63a7\u5236\u53f0\uff09\uff0corg.apache.log4j.FileAppender

org.apache.log4j.DailyRollingFileAppender

org.apache.log4j.RollingFileAppender

org.apache.log4j.WriterAppender \u5c06\u65e5\u5fd7\u4fe1\u606f\u4ee5\u6d41\u683c\u5f0f\u53d1\u9001\u5230\u4efb\u610f\u6307\u5b9a\u7684\u5730\u65b9

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

org.apache.log4j.SimpleLayout \u5305\u542b\u65e5\u5fd7\u4fe1\u606f\u7684\u7ea7\u522b \u548c\u4fe1\u606f\u5b57\u7b26\u4e32

org.apache.log4j.TTCCLayout \u5305\u542b\u65e5\u5fd7\u4ea7\u751f\u7684\u4e16\u754c\u3001\u7ebf\u7a0b\u3001\u7c7b\u522b\u7b49\u7b49\u4fe1\u606f

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

java_log4j

标签:ati   oci   web   sof   rap   console   pen   fat   log   

原文地址:http://blog.51cto.com/6000734/2347609

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!