provs/src/main/resources/logback.xml

42 lines
1.5 KiB
XML
Raw Normal View History

2021-02-10 19:24:43 +00:00
<configuration>
<timestamp key="byTime" datePattern="yyyyMMdd'T'HHmmss"/>
2021-05-15 17:33:56 +00:00
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<target>System.out</target>
2021-12-28 12:06:10 +00:00
<!-- don't log to console, reserve console for result reporting -->
2021-05-15 17:33:56 +00:00
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
2021-12-28 12:06:10 +00:00
<level>OFF</level>
2021-05-15 17:33:56 +00:00
</filter>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{35}) - %msg %n</pattern>
</encoder>
</appender>
2021-02-10 19:24:43 +00:00
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>./logs/provs-${byTime}.log</file>
<rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
<fileNamePattern>./logs/provs-%d{yyyy-MM-dd}.%i.log</fileNamePattern>
<maxFileSize>10MB</maxFileSize>
2021-12-28 12:06:10 +00:00
<maxHistory>300</maxHistory>
2021-02-10 19:24:43 +00:00
<totalSizeCap>1GB</totalSizeCap>
</rollingPolicy>
<append>true</append>
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>INFO</level>
</filter>
2021-02-10 19:24:43 +00:00
</appender>
2021-12-28 12:06:10 +00:00
<root level="DEBUG">
<appender-ref ref="STDOUT" />
2021-02-10 19:24:43 +00:00
<appender-ref ref="FILE" />
</root>
2021-12-28 12:06:10 +00:00
<logger name="net.schmizz" level="ERROR">
<appender-ref ref="FILE" />
</logger>
2021-05-15 17:33:56 +00:00
2021-02-10 19:24:43 +00:00
</configuration>