|
|
|
@ -3,15 +3,14 @@
|
|
|
|
|
|
|
|
|
|
<property name="ARTHAS_LOG_PATH" value="${ARTHAS_LOG_PATH:-${user.home}/logs/arthas}" />
|
|
|
|
|
<property name="ARTHAS_LOG_FILE" value="${ARTHAS_LOG_FILE:-${ARTHAS_LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/arthas.log}" />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<property name="RESULT_LOG_FILE" value="${RESULT_LOG_FILE:-${ARTHAS_LOG_PATH:-${LOG_TEMP:-${java.io.tmpdir:-/tmp}}}/../arthas-cache/result.log}" />
|
|
|
|
|
|
|
|
|
|
<!-- arthas.log -->
|
|
|
|
|
<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>
|
|
|
|
|
|
|
|
|
|