log4j.properties ——【01_生产系统配置】

作者在 2010-03-29 10:44:12 发布以下内容
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger= ,A1,A2

#log4j.logger.cdsc.system.publisher.report = DEBUG

# A1 is set to be a ConsoleAppender.
#log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A1.File=/app/logs/app1/myProject/ShuangZSwebApp/info.log
log4j.appender.A1.Threshold=INFO

#log4j.appender.A2=org.apache.log4j.FileAppender
log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender
log4j.appender.A2.File=/app/logs/app1/myProject/ShuangZSwebApp/error.log
log4j.appender.A2.Threshold=ERROR
#log4j.appender.A2.Append=false

#log4j.logger.cdsc.system.publisher.report=DEBUG, A@
#log4j.logger.cdsc.system.publisher.report=ERROR

# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=ShuangZS_Log:[%d{yyyy-MM-dd HH:mm:ss}] %5p %c{1}:%L - %m%n

log4j.appender.A2.layout=org.apache.log4j.PatternLayout
log4j.appender.A2.layout.ConversionPattern=ShuangZS_Log:[%d{yyyy-MM-dd HH:mm:ss}] %5p %c{1}:%L - %m%n

log | 阅读 1499 次
文章评论,共0条
游客请输入验证码
浏览581560次