Apache Log4j配置

#log4j.rootLogger=debug,stdout
log4j.rootLogger=INFO,stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %5p (%F\:%L) - %m%n

log4j.rootCategory =DEBUG,INFO,FILE

log4j.appender.INFO=org.apache.log4j.RollingFileAppender
log4j.appender.INFO.layout=org.apache.log4j.PatternLayout
log4j.appender.INFO.file=${bhy.root}/WEB-INF/conf/log4j/bhy.log

log4j.appender.FILE=org.apache.log4j.DailyRollingFileAppender
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout
log4j.appender.FILE.file=${bhy.root}/WEB-INF/conf/log4j/bhy.log

你可能感兴趣的:(apache,log4j,Web,F#)