2016-07-21 12:55:40 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<Configuration status="info">
|
|
|
|
|
|
|
|
<Properties>
|
|
|
|
<Property name="log-path">logs</Property>
|
2016-07-25 17:07:50 +00:00
|
|
|
<Property name="log-name">node-${hostName}</Property>
|
2016-11-18 17:30:51 +00:00
|
|
|
<Property name="archive">${sys:log-path}/archive</Property>
|
|
|
|
<Property name="consoleLogLevel">error</Property>
|
2016-07-21 12:55:40 +00:00
|
|
|
</Properties>
|
|
|
|
|
|
|
|
<ThresholdFilter level="trace"/>
|
|
|
|
|
|
|
|
<Appenders>
|
|
|
|
<Console name="Console-Appender" target="SYSTEM_OUT">
|
|
|
|
<PatternLayout>
|
|
|
|
<pattern>
|
2016-08-01 10:07:27 +00:00
|
|
|
%highlight{%level{length=1} %d{HH:mm:ss} %T %c{1}.%M - %msg%n}{INFO=white,WARN=red,FATAL=bright red blink}
|
2016-07-21 12:55:40 +00:00
|
|
|
</pattern>>
|
|
|
|
</PatternLayout>
|
|
|
|
</Console>
|
|
|
|
|
|
|
|
<!-- Will generate up to 10 log files for a given day. During every rollover it will delete
|
|
|
|
those that are older than 60 days, but keep the most recent 10 GB -->
|
|
|
|
<RollingFile name="RollingFile-Appender"
|
2016-11-18 17:30:51 +00:00
|
|
|
fileName="${sys:log-path}/${log-name}.log"
|
2016-07-21 12:55:40 +00:00
|
|
|
filePattern="${archive}/${log-name}.%d{yyyy-MM-dd}-%i.log.gz">
|
|
|
|
|
2016-07-25 17:07:50 +00:00
|
|
|
<PatternLayout pattern="[%-5level] %d{ISO8601}{GMT+0} [%t] %c{1} - %msg%n"/>
|
2016-07-21 12:55:40 +00:00
|
|
|
|
|
|
|
<Policies>
|
|
|
|
<TimeBasedTriggeringPolicy/>
|
|
|
|
<SizeBasedTriggeringPolicy size="10MB"/>
|
|
|
|
</Policies>
|
|
|
|
|
|
|
|
<DefaultRolloverStrategy min="1" max="10">
|
|
|
|
<Delete basePath="${archive}" maxDepth="1">
|
|
|
|
<IfFileName glob="${log-name}*.log.gz"/>
|
|
|
|
<IfLastModified age="60d">
|
|
|
|
<IfAny>
|
|
|
|
<IfAccumulatedFileSize exceeds="10 GB"/>
|
|
|
|
</IfAny>
|
|
|
|
</IfLastModified>
|
|
|
|
</Delete>
|
|
|
|
</DefaultRolloverStrategy>
|
|
|
|
|
|
|
|
</RollingFile>
|
|
|
|
</Appenders>
|
|
|
|
|
|
|
|
<Loggers>
|
2016-11-18 17:30:51 +00:00
|
|
|
<Root>
|
|
|
|
<AppenderRef ref="Console-Appender" level="${sys:consoleLogLevel}"/>
|
|
|
|
<AppenderRef ref="RollingFile-Appender" level="info"/>
|
2016-07-21 12:55:40 +00:00
|
|
|
</Root>
|
2016-11-10 13:14:38 +00:00
|
|
|
<Logger name="net.corda" level="info" additivity="false">
|
2016-11-18 17:30:51 +00:00
|
|
|
<AppenderRef ref="Console-Appender" level="${sys:consoleLogLevel}"/>
|
2016-08-09 11:37:55 +00:00
|
|
|
<AppenderRef ref="RollingFile-Appender"/>
|
|
|
|
</Logger>
|
2016-07-21 12:55:40 +00:00
|
|
|
</Loggers>
|
2016-10-17 16:50:33 +00:00
|
|
|
</Configuration>
|