log4j

log4j.rootLogger=INFO,zz,stdout

log4j.appender.zz=org.apache.log4j.DailyRollingFileAppender

log4j.appender.zz.file=C:/logs/zz.log

log4j.appender.zz.DatePattern='.'yyyy-MM-dd

log4j.appender.zz.layout=org.apache.log4j.PatternLayout

log4j.appender.zz.layout.conversionPattern=%d[%t]%-5p%c{1}-%m%n

log4j.appender.zz.append=true

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

log4j.appender.stdout.layout.ConversionPattern=[%d{ddMMMyyyyHH:mm:ss}%5p]-%m%n

log4j.category.com.augmentum.zz.dao=INFO,dao

log4j.additivity.com.augmentum.zz.dao=false

log4j.appender.dao=org.apache.log4j.DailyRollingFileAppender

log4j.appender.dao.file=C:/logs/zz_dao.log

log4j.appender.dao.DatePattern='.'yyyy-MM-dd

log4j.appender.dao.layout=org.apache.log4j.PatternLayout

log4j.appender.dao.layout.conversionPattern=%d[%t]%-5p%c{1}-%m%n

log4j.appender.dao.append=true

相关推荐