用log4j记录proxool日志
程序员文章站
2024-01-06 21:02:10
...
需要把proxool的日志单独记录
log4j.rootLogger=info,stdout,hfile,proxool
log4j.logger.org.logicalcobwebs.proxool=info
log4j.appender.proxool=org.apache.log4j.DailyRollingFileAppender
log4j.appender.proxool.File=${myapp.WebRoot}/logs/proxool.log
log4j.appender.proxool.layout=org.apache.log4j.PatternLayout
log4j.appender.proxool.layout.ConversionPattern=%d{DATE} [%-5p] %c {%F:%L} - %m%n
log4j.appender.proxool.DatePattern='.'yyyy-MM-dd