update logback.xml. #985

pull/1093/head
hengyunabc 5 years ago
parent 4af87030a3
commit c80ac4693e

@ -10,8 +10,7 @@
<appender name="ARTHAS" class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.RollingFileAppender">
<file>${ARTHAS_LOG_FILE}</file>
<encoder>
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n
</pattern>
<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} -%msg%n</pattern>
</encoder>
<rollingPolicy class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${ARTHAS_LOG_FILE}.%d{yyyy-MM-dd}.%i.log
@ -26,8 +25,7 @@
<appender name="RESULT" class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.RollingFileAppender">
<file>${RESULT_LOG_FILE}</file>
<encoder>
<pattern>%date %level [%thread] %logger{10} [%file:%line] %msg%n
</pattern>
<pattern>%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} -%msg%n</pattern>
</encoder>
<rollingPolicy class="com.alibaba.arthas.deps.ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>${RESULT_LOG_FILE}.%d{yyyy-MM-dd}.%i.log
@ -38,20 +36,11 @@
</rollingPolicy>
</appender>
<!-- <appender name="CONSOLE" class="com.alibaba.arthas.deps.ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>${CONSOLE_LOG_PATTERN}</pattern>
<charset>utf8</charset>
</encoder>
</appender> -->
<result level="INFO">
<!-- <appender-ref ref="CONSOLE" /> -->
<appender-ref ref="RESULT" />
</result>
<root level="INFO">
<!-- <appender-ref ref="CONSOLE" /> -->
<appender-ref ref="ARTHAS" />
</root>

Loading…
Cancel
Save