|
|
@@ -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> |