码迷,mamicode.com
首页 > 其他好文 > 详细

log4j.properties配置模板

时间:2017-08-24 21:22:08      阅读:180      评论:0      收藏:0      [点我收藏+]

标签:sns   ace   comm   category   模板   default   def   jboss   append   

# 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.
log4j.rootLogger=INFO, stdout, logfile
log4j.logger.NewsNS.doCreate=TRACE
log4j.logger.cn.mldn.dao.INewsDAO=TRACE

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - %m%n

log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=logs/spring0824.log
log4j.appender.logfile.MaxFileSize=512KB
# Keep three backup files.
log4j.appender.logfile.MaxBackupIndex=3
# Pattern to output: date priority [category] - message
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - %m%n

 

log4j.properties配置模板

标签:sns   ace   comm   category   模板   default   def   jboss   append   

原文地址:http://www.cnblogs.com/kuillldan/p/7424968.html

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