53 lines
No EOL
1.8 KiB
XML
53 lines
No EOL
1.8 KiB
XML
<configuration>
|
|
|
|
<timestamp key="byTime" datePattern="yyyyMMdd'T'HHmmss"/>
|
|
|
|
<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
|
|
<target>System.err</target>
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
<level>WARN</level>
|
|
</filter>
|
|
<encoder>
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{35}) - %msg %n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
|
|
<target>System.out</target>
|
|
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
|
|
<level>DEBUG</level>
|
|
</filter>
|
|
<encoder>
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %highlight(%-5level) %cyan(%logger{35}) - %msg %n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<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>
|
|
<maxHistory>3</maxHistory>
|
|
<totalSizeCap>1GB</totalSizeCap>
|
|
</rollingPolicy>
|
|
<append>true</append>
|
|
<encoder>
|
|
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
|
|
<logger name="net.schmizz" level="ERROR">
|
|
<appender-ref ref="STDERR" />
|
|
<appender-ref ref="FILE" />
|
|
</logger>
|
|
|
|
<root level="INFO">
|
|
<appender-ref ref="STDERR" />
|
|
<appender-ref ref="FILE" />
|
|
</root>
|
|
|
|
<root level="WARN">
|
|
<appender-ref ref="STDOUT" />
|
|
</root>
|
|
|
|
</configuration> |