Browse Source

merge;

tags/1.4.0^2
huanghaiquan 3 years ago
parent
commit
cf1d733d57
2 changed files with 24 additions and 4 deletions
  1. +12
    -2
      deploy/deploy-gateway/src/main/resources/config/log4j2-gw.xml
  2. +12
    -2
      deploy/deploy-peer/src/main/resources/config/log4j2-peer.xml

+ 12
- 2
deploy/deploy-gateway/src/main/resources/config/log4j2-gw.xml View File

@@ -2,18 +2,27 @@
<configuration status="WARN" monitorInterval="60">
<appenders>
<console name="Console" target="SYSTEM_OUT">
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
<ThresholdFilter level="all" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%n"/>
</console>
<RollingFile name="GWRolling" fileName="${sys:jdchain.log}/gw.log"
filePattern="${sys:jdchain.log}/$${date:yyyy-MM}/gw-%d{yyyy-MM-dd}-%i.log">
<PatternLayout pattern="[%d{HH:mm:ss:SSS}] [%p] - %l - %m%n"/>
<PatternLayout pattern="[%date{yyyy-MM-dd HH:mm:ss:SSS}] [%thread] [%p] - %l - %m%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
<RollingFile name="GWRollingError" fileName="${sys:jdchain.log}/gw.error.log"
filePattern="${sys:jdchain.log}/$${date:yyyy-MM}/gw.error-%d{yyyy-MM-dd}-%i.log">
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="[%date{yyyy-MM-dd HH:mm:ss:SSS}] [%thread] [%p] - %l - %m%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="100 MB"/>
</Policies>
</RollingFile>
</appenders>

<loggers>
@@ -22,6 +31,7 @@
<root level="all">
<appender-ref ref="Console"/>
<appender-ref ref="GWRolling"/>
<appender-ref ref="GWRollingError"/>
</root>
</loggers>
</configuration>

+ 12
- 2
deploy/deploy-peer/src/main/resources/config/log4j2-peer.xml View File

@@ -2,18 +2,27 @@
<configuration status="WARN" monitorInterval="60">
<appenders>
<console name="Console" target="SYSTEM_OUT">
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
<ThresholdFilter level="all" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="%d{HH:mm:ss.SSS} %-5level %class{36} %L %M - %msg%xEx%n"/>
</console>
<RollingFile name="PeerRolling" fileName="${sys:jdchain.log}/peer.log"
filePattern="${sys:jdchain.log}/$${date:yyyy-MM}/peer-%d{yyyy-MM-dd}-%i.log">
<PatternLayout pattern="[%d{HH:mm:ss:SSS}] [%p] - %l - %m%n"/>
<PatternLayout pattern="[%date{yyyy-MM-dd HH:mm:ss:SSS}] [%thread] [%p] - %l - %m%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="250 MB"/>
</Policies>
<DefaultRolloverStrategy max="10"/>
</RollingFile>
<RollingFile name="PeerRollingError" fileName="${sys:jdchain.log}/peer.error.log"
filePattern="${sys:jdchain.log}/$${date:yyyy-MM}/peer.error-%d{yyyy-MM-dd}-%i.log">
<ThresholdFilter level="error" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="[%date{yyyy-MM-dd HH:mm:ss:SSS}] [%thread] [%p] - %l - %m%n"/>
<Policies>
<TimeBasedTriggeringPolicy/>
<SizeBasedTriggeringPolicy size="100 MB"/>
</Policies>
</RollingFile>
</appenders>

<loggers>
@@ -22,6 +31,7 @@
<root level="all">
<appender-ref ref="Console"/>
<appender-ref ref="PeerRolling"/>
<appender-ref ref="PeerRollingError"/>
</root>
</loggers>
</configuration>

Loading…
Cancel
Save