|
@@ -9,16 +9,16 @@ log4j.logger.com.persagy.apm=DEBUG
|
|
|
|
|
|
#输出到控制台
|
|
|
log4j.appender.systemOut=org.apache.log4j.ConsoleAppender
|
|
|
-log4j.appender.systemOut.layout=org.apache.log4j.PatternLayout
|
|
|
-log4j.appender.systemOut.layout.ConversionPattern = %d{yyyy-MM-dd HH:mm:ss} %m%n
|
|
|
+log4j.appender.systemOut.layout=org.apache.skywalking.apm.toolkit.log.log4j.v1.x.TraceIdPatternLayout
|
|
|
+log4j.appender.systemOut.layout.ConversionPattern =[energy-eq-run-diagnose] %d{yyyy-MM-dd HH\:mm\:ss} %TID %p ${PID} [%thread] %c %m%n
|
|
|
log4j.appender.systemOut.Threshold=DEBUG
|
|
|
log4j.appender.systemOut.ImmediateFlush=TRUE
|
|
|
log4j.appender.systemOut.Target=System.out
|
|
|
|
|
|
#info日志按DatePattern输出到文件
|
|
|
log4j.appender.logInfo=org.apache.log4j.RollingFileAppender
|
|
|
-log4j.appender.logInfo.layout=org.apache.log4j.PatternLayout
|
|
|
-log4j.appender.logInfo.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %m%n
|
|
|
+log4j.appender.logInfo.layout=org.apache.skywalking.apm.toolkit.log.log4j.v1.x.TraceIdPatternLayout
|
|
|
+log4j.appender.logInfo.layout.ConversionPattern=[energy-eq-run-diagnose] %d{yyyy-MM-dd HH\:mm\:ss} %TID %p ${PID} [%thread] %c %m%n
|
|
|
log4j.appender.logInfo.Threshold=DEBUG
|
|
|
log4j.appender.logInfo.ImmediateFlush=TRUE
|
|
|
log4j.appender.logInfo.File = ../logs/energy-eq-run-diagnose/log.log
|
|
@@ -26,3 +26,5 @@ log4j.appender.logInfo.File = ../logs/energy-eq-run-diagnose/log.log
|
|
|
log4j.appender.logInfo.Encoding=UTF-8
|
|
|
log4j.appender.logInfo.MaxFileSize=20MB
|
|
|
log4j.appender.logInfo.MaxBackupIndex=10
|
|
|
+
|
|
|
+
|