zcxgz362324 2016-01-20 13:01 采纳率: 100%
浏览 1579
已采纳

log4j配置,有人可以帮我解释一下吗????求求求啦啦啦

log4j.rootLogger=ERROR,stdout
log4j.category.org=ERROR, stdout
log4j.category.net=ERROR, stdout
log4j.category.httpclient=ERROR, stdout
log4j.category.fwserver=ERROR,stdout
log4j.category.com.cosco.coris=ERROR,stdout
log4j.category.com.cosco.coris.job=ERROR,stdout
#log4j.rootLogger=DEBUG,stdout
#log4j.category.org=DEBUG, stdout
#log4j.category.net=DEBUG, stdout
#log4j.category.httpclient=DEBUG, stdout
#log4j.category.fwserver=DEBUG,stdout
#log4j.category.com.cosco.coris=DEBUG,stdout
#log4j.category.com.cosco.coris.job=DEBUG,stdout

support code

log4j.category.fwserver.dao.test=ERROR,stdout

appender writes to console

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%p [an%d{HH:mm:ss SSS}] %c{1}.%M(%L): %m%n

appender for performance log

log4j.appender.LogSystem=org.apache.log4j.DailyRollingFileAppender
log4j.appender.LogSystem.File=performance.log
log4j.appender.LogSystem.DatePattern='.'yyyyMMdd
log4j.appender.LogSystem.layout=org.apache.log4j.PatternLayout
log4j.appender.LogSystem.layout.ConversionPattern=%m%n

appender for performance log ext

log4j.appender.LogSystem2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.LogSystem2.File=performance_desc.log
log4j.appender.LogSystem2.DatePattern='.'yyyyMMdd
log4j.appender.LogSystem2.layout=org.apache.log4j.PatternLayout
log4j.appender.LogSystem2.layout.ConversionPattern=%m%n

logger for LogSystem

log4j.logger.fwserver.utility.LogSystem=ERROR,LogSystem
log4j.additivity.fwserver.utility.LogSystem=false

logger for LogUtil

log4j.logger.fwserver.utility.LogUtil=ERROR,stdout
log4j.additivity.fwserver.utility.LogUtil=false

logger for LogSystem2

log4j.logger.fwserver.utility.LogSystem2=INFO,LogSystem2
log4j.additivity.fwserver.utility.LogSystem2=false

logger for job

log4j.appender.monitor=org.apache.log4j.DailyRollingFileAppender
##??${CORIS_JOB_HOME}/????Coris????java.io.FileNotFoundException: /jobMonitor.log (Permission denied (errno:13)) added by weidl2 2009-2-18
log4j.appender.monitor.File=jobMonitor.log
log4j.appender.monitor.DatePattern='.'yyyyMMdd
log4j.appender.monitor.layout=org.apache.log4j.PatternLayout
log4j.appender.monitor.layout.ConversionPattern=%p | %d | %m %n

log4j.logger.com.cosco.coris.job.batchTaskList.BatchTaskJob=ERROR, monitor

appender for TimeTraceUtil log

log4j.appender.TimeTrace=org.apache.log4j.DailyRollingFileAppender
log4j.appender.TimeTrace.File=timeTrace.log
log4j.appender.TimeTrace.DatePattern='.'yyyyMMdd
log4j.appender.TimeTrace.layout=org.apache.log4j.PatternLayout
log4j.appender.TimeTrace.layout.ConversionPattern=%m%n

logger for TimeTrace

log4j.logger.fwserver.utility.trace.TimeTraceUtil=DEBUG,TimeTrace
log4j.additivity.fwserver.utility.trace.TimeTraceUtil=true

appender for edi tracing ws

log4j.appender.WsLog=org.apache.log4j.DailyRollingFileAppender
log4j.appender.WsLog.File=ediTracing.log
log4j.appender.WsLog.DatePattern='.'yyyyMMdd
log4j.appender.WsLog.layout=org.apache.log4j.PatternLayout
log4j.appender.WsLog.layout.ConversionPattern=%m%n

logger for edi tracing ws

log4j.logger.fwserver.utility.WsLogUtil=ERROR,WsLog
log4j.additivity.fwserver.utility.WsLogUtil=true

  • 写回答

5条回答

  • tony4geek 2016-01-21 01:11
    关注
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图
  • ¥15 写一个方法checkPerson,入参实体类Person,出参布尔值
  • ¥15 我想咨询一下路面纹理三维点云数据处理的一些问题,上传的坐标文件里是怎么对无序点进行编号的,以及xy坐标在处理的时候是进行整体模型分片处理的吗
  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图