|
@@ -1,6 +1,11 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<Configuration status="WARN" monitorInterval="30">
|
|
|
|
|
|
+ <Properties>
|
|
|
+ <Property name="commonLevel" value="${sys:log.commonLevel}" />
|
|
|
+ <Property name="logDir" value="${sys:logDir}" />
|
|
|
+ </Properties>
|
|
|
+
|
|
|
<Appenders>
|
|
|
<Console name="Console" target="SYSTEM_OUT">
|
|
|
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss.SSS}| %level | %m | %l%n" />
|
|
@@ -21,7 +26,7 @@
|
|
|
</DefaultRolloverStrategy>
|
|
|
</RollingFile>
|
|
|
<!-- result -->
|
|
|
- <RollingFile name="RESULT_APPENDER" filePattern="./logs/result/result-%i.txt">
|
|
|
+ <RollingFile name="RESULT_APPENDER" filePattern="${logDir}/result/result-%i.txt">
|
|
|
<PatternLayout pattern="%m%n" />
|
|
|
<Policies>
|
|
|
<SizeBasedTriggeringPolicy size="512 MB" />
|