# For JBoss: Avoid to setup Log4J outside$JBOSS_HOME/server/default/deploy/log4j.xml!
# For all other servers: Comment out the Log4J listener in web.xml to activate Log4J.
#设置输出地stdout,为ConsoleAppender(控制台)
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.Target=System.err
#设置stdout的输出布局格式PatterLayout,(可以灵活地指定布局模式)
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#配置日志输出的格式
log4j.appender.stdout.layout.ConversionPattern=%d{yyyyMMddHHmmss} %p [%c] - %m%n
#FEEDBACK 输出到文件 RollingFileAppender的扩展,可以提供一种日志的备份功能。
log4j.appender.FEEDBACK=org.apache.log4j.DailyRollingFileAppender
# 日志文件的文件名
log4j.appender.FEEDBACK.File=/usr/local/netqin/boss/netqin/logs/BOSS_ContentServer/BOSS_CommonService/feedback.log
log4j.appender.FEEDBACK.DatePattern='.'yyyy-MM-dd
log4j.appender.FEEDBACK.layout=org.apache.log4j.PatternLayout
log4j.appender.FEEDBACK.layout.ConversionPattern=%d{yyyyMMddHHmmss} %p [%c] - %m%n
log4j.logger.ResultLogger_FeedBack_V10=INFO,FEEDBACK
log4j.rootLogger=info,stdout
log4j.org.apache=warn
log4j.logger.org.springframework=INFO,FEEDBACK
阅读(1075) | 评论(0) | 转发(0) |