2016-08-20 21:36:09 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<configuration>
|
|
|
|
<statusListener class="ch.qos.logback.core.status.NopStatusListener" />
|
2016-08-29 22:03:09 +00:00
|
|
|
<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>
|
2016-08-20 21:36:09 +00:00
|
|
|
<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>
|
2017-11-08 07:05:53 +00:00
|
|
|
<!-- keep 5 days of history -->
|
|
|
|
<maxHistory>5</maxHistory>
|
2016-08-20 21:36:09 +00:00
|
|
|
</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="FILE"/>
|
|
|
|
</logger>
|
|
|
|
<logger name="com.zaxxer.hikari" level="warn">
|
|
|
|
<AppenderRef ref="FILE"/>
|
|
|
|
</logger>
|
2017-11-08 07:10:29 +00:00
|
|
|
<root level="INFO">
|
2016-08-29 22:03:09 +00:00
|
|
|
<appender-ref ref="STDOUT" />
|
2016-08-20 21:36:09 +00:00
|
|
|
<appender-ref ref="FILE" />
|
|
|
|
</root>
|
|
|
|
</configuration>
|