Let spirit guide you

thinking in life.

常用链接

统计

API

Forum

Site

WiKi

最新评论

log4j.properties

log4j.rootCategory=WARN, stdout, logfile
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=${@PROJECT_NAME@.root}/@PROJECT_NAME@.log
log4j.appender.logfile.MaxFileSize=512KB
# Keep three backup files
log4j.appender.logfile.MaxBackupIndex=3
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
#Pattern to output : date priority [category] - <message>line_separator
log4j.appender.logfile.layout.ConversionPattern=%d %p [%c] - <%m>%n
# Enable debug interceptor
#log4j.category.org.springframework.aop.interceptor=DEBUG

posted on 2008-09-26 17:46 cary 阅读(175) 评论(1)  编辑  收藏

评论

# re: log4j.properties[未登录] 2011-02-07 16:58 nick

#JDK Logger 优先级从低到高所有的Logger Level为:FINEST, FINER, FINE, CONFIG, INFO, WARNING, ERROR。 你可以为每一个Handler设置你的级别
java.util.logging.ConsoleHandler.level=FINER  回复  更多评论   


只有注册用户登录后才能发表评论。


网站导航: