1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
| log4j.rootLogger=debug,CONSOLE,info,error,DEBUG
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout log4j.appender.CONSOLE.layout.ConversionPattern=---------------------------------\ %n [%d{yyyy-MM-dd-HH-mm}] %n [%t] %n [%c] %n [%p] %n - %m%n log4j.appender.CONSOLE.Threshold=info log4j.appender.console.an.si.enabled = true
log4j.appender.info=org.apache.log4j.DailyRollingFileAppender log4j.appender.info.layout=org.apache.log4j.PatternLayout log4j.appender.info.layout.ConversionPattern=---------------------------------\ %n [%d{yyyy-MM-dd-HH-mm}] %n [%t] %n [%c] %n [%p] %n - %m%n log4j.appender.info.datePattern='.'yyyy-MM-dd log4j.appender.info.Threshold =INFO log4j.appender.info.append=true log4j.appender.info.File=E:/dance/demo/log/info.log
log4j.appender.error=org.apache.log4j.DailyRollingFileAppender log4j.appender.error.layout=org.apache.log4j.PatternLayout log4j.appender.error.layout.ConversionPattern=---------------------------------\ %n [%d{yyyy-MM-dd-HH-mm}] %n [%t] %n [%c] %n [%p] %n - %m%n log4j.appender.error.datePattern='.'yyyy-MM-dd log4j.appender.error.Threshold =ERROR log4j.appender.error.append=true log4j.appender.error.File=E:/dance/demo/log/error.log
log4j.appender.DEBUG=org.apache.log4j.DailyRollingFileAppender log4j.appender.DEBUG.layout=org.apache.log4j.PatternLayout log4j.appender.DEBUG.layout.ConversionPattern=---------------------------------\ %n [%d{yyyy-MM-dd-HH-mm}] %n [%t] %n [%c] %n [%p] %n - %m%n log4j.appender.DEBUG.datePattern='.'yyyy-MM-dd log4j.appender.DEBUG.Threshold =DEBUG log4j.appender.DEBUG.append=true log4j.appender.DEBUG.File=E:/dance/demo/log/debug.log
|