mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
59 lines
2.2 KiB
XML
59 lines
2.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Configuration status="info">
|
|
|
|
<Properties>
|
|
<Property name="log-path">logs</Property>
|
|
<Property name="log-name">node-${hostName}</Property>
|
|
<Property name="archive">${sys:log-path}/archive</Property>
|
|
<Property name="consoleLogLevel">error</Property>
|
|
</Properties>
|
|
|
|
<ThresholdFilter level="trace"/>
|
|
|
|
<Appenders>
|
|
<Console name="Console-Appender" target="SYSTEM_OUT">
|
|
<PatternLayout>
|
|
<pattern>
|
|
%highlight{%level{length=1} %d{HH:mm:ss} %T %c{1}.%M - %msg%n}{INFO=white,WARN=red,FATAL=bright red blink}
|
|
</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"
|
|
fileName="${sys:log-path}/${log-name}.log"
|
|
filePattern="${archive}/${log-name}.%d{yyyy-MM-dd}-%i.log.gz">
|
|
|
|
<PatternLayout pattern="[%-5level] %d{ISO8601}{GMT+0} [%t] %c{1} - %msg%n"/>
|
|
|
|
<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>
|
|
<Root level="info">
|
|
<AppenderRef ref="Console-Appender" level="${sys:consoleLogLevel}"/>
|
|
<AppenderRef ref="RollingFile-Appender" level="info"/>
|
|
</Root>
|
|
<Logger name="net.corda" level="info" additivity="false">
|
|
<AppenderRef ref="Console-Appender" level="${sys:consoleLogLevel}"/>
|
|
<AppenderRef ref="RollingFile-Appender"/>
|
|
</Logger>
|
|
</Loggers>
|
|
</Configuration> |