29 lines
1.2 KiB
XML
29 lines
1.2 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<Configuration status="INFO" monitorInterval="5">
|
|
|
|
<Properties>
|
|
<Property name="root.log.level">INFO</Property>
|
|
</Properties>
|
|
|
|
<Appenders>
|
|
<Console name="Console" target="SYSTEM_OUT">
|
|
<PatternLayout alwaysWriteExceptions="false" pattern='{"timestamp":"%d{ISO8601}","container":"${hostName}","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n'/>
|
|
</Console>
|
|
<RollingFile name="RollingFile" fileName="/tmp/besu/besu-${env:HOSTNAME}.log" filePattern="/tmp/besu/besu-${env:HOSTNAME}_%d{yyyy-MM-dd}_%i.log.gz" >
|
|
<PatternLayout alwaysWriteExceptions="false" pattern='{"timestamp":"%d{ISO8601}","container":"${hostName}","level":"%level","thread":"%t","class":"%c{1}","message":"%msg","throwable":"%enc{%throwable}{JSON}"}%n'/>
|
|
<Policies>
|
|
<SizeBasedTriggeringPolicy size="10 MB" />
|
|
</Policies>
|
|
<DefaultRolloverStrategy max="5" />
|
|
</RollingFile>
|
|
</Appenders>
|
|
|
|
<Loggers>
|
|
<Root level="${sys:root.log.level}">
|
|
<AppenderRef ref="RollingFile" />
|
|
<AppenderRef ref="Console" />
|
|
</Root>
|
|
</Loggers>
|
|
|
|
</Configuration>
|