|
@@ -1,9 +1,12 @@
|
|
#priority:debug<info<warn<error
|
|
#priority:debug<info<warn<error
|
|
log4j.rootLogger=info,error,stdout
|
|
log4j.rootLogger=info,error,stdout
|
|
|
|
+
|
|
#console
|
|
#console
|
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
|
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.stdout.layout.ConversionPattern=[%d{yyyy-MM-ddHH:mm:ssa}]:%p%l%m%n
|
|
log4j.appender.stdout.layout.ConversionPattern=[%d{yyyy-MM-ddHH:mm:ssa}]:%p%l%m%n
|
|
|
|
+log4j.appender.stdout.encoding=UTF-8
|
|
|
|
+
|
|
#error
|
|
#error
|
|
log4j.logger.error=error
|
|
log4j.logger.error=error
|
|
log4j.appender.error=org.apache.log4j.DailyRollingFileAppender
|
|
log4j.appender.error=org.apache.log4j.DailyRollingFileAppender
|
|
@@ -12,4 +15,4 @@ log4j.appender.error.File=D:/minitor-logs/error.log
|
|
log4j.appender.error.Append=true
|
|
log4j.appender.error.Append=true
|
|
log4j.appender.error.Threshold=ERROR
|
|
log4j.appender.error.Threshold=ERROR
|
|
log4j.appender.error.layout=org.apache.log4j.PatternLayout
|
|
log4j.appender.error.layout=org.apache.log4j.PatternLayout
|
|
-log4j.appender.error.layout.ConversionPattern=%d{yyyy-MM-ddHH:mm:ssa}[Thread:%t][Class:%c>>Method:%l]%n%p:%m%n
|
|
|
|
|
|
+log4j.appender.error.layout.ConversionPattern=%d{yyyy-MM-ddHH:mm:ssa}[Thread:%t][Class:%c>>Method:%l]%n%p:%m%n
|