44 lines
1.8 KiB
XML
44 lines
1.8 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<configuration>
|
|
<statusListener class="ch.qos.logback.core.status.NopStatusListener"/>
|
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
<!-- encoders are assigned the type
|
|
ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
|
|
<encoder>
|
|
<charset>UTF-8</charset>
|
|
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg %n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
<file>log/commiteth.log</file>
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
<fileNamePattern>log/commiteth.%d{yyyy-MM-dd}.%i.log</fileNamePattern>
|
|
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP">
|
|
<maxFileSize>100MB</maxFileSize>
|
|
</timeBasedFileNamingAndTriggeringPolicy>
|
|
<!-- keep 10 days of history -->
|
|
<maxHistory>10</maxHistory>
|
|
</rollingPolicy>
|
|
<encoder>
|
|
<charset>UTF-8</charset>
|
|
<pattern>%date{ISO8601} [%thread] %-5level %logger{36} - %msg %n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
<logger name="org.xnio.nio" level="warn">
|
|
<AppenderRef ref="STDOUT"/>
|
|
<AppenderRef ref="FILE"/>
|
|
</logger>
|
|
<logger name="com.zaxxer.hikari" level="warn">
|
|
<AppenderRef ref="STDOUT"/>
|
|
<AppenderRef ref="FILE"/>
|
|
</logger>
|
|
<root level="DEBUG">
|
|
<!-- <appender-ref ref="STDOUT"/> -->
|
|
<appender-ref ref="FILE"/>
|
|
</root>
|
|
<root level="INFO">
|
|
<!-- <appender-ref ref="STDOUT"/> -->
|
|
<appender-ref ref="FILE"/>
|
|
</root>
|
|
</configuration>
|