1 <?xml version="1.0" encoding="UTF-8"?>
4 <appender name="console" class="ch.qos.logback.core.ConsoleAppender">
5 <!-- encoders are assigned the type ch.qos.logback.classic.encoder.PatternLayoutEncoder by default -->
7 <pattern>%-5p [%d] %c: %m%n%rEx</pattern>
8 <charset>UTF-8</charset>
12 <appender name="file" class="ch.qos.logback.core.rolling.RollingFileAppender">
13 <file>logs/out.log</file>
14 <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy">
15 <fileNamePattern>logs/out-%d{yyyy-MM-dd}.%i.log.zip</fileNamePattern>
16 <maxFileSize>10MB</maxFileSize>
17 <maxHistory>30</maxHistory>
18 <totalSizeCap>200MB</totalSizeCap>
21 <pattern>%-5p [%d] %c: %m%n%rEx</pattern>
22 <charset>UTF-8</charset>
26 <appender name="async-console" class="ch.qos.logback.classic.AsyncAppender">
27 <appender-ref ref="console" />
30 <appender name="async-file" class="ch.qos.logback.classic.AsyncAppender">
31 <appender-ref ref="file" />
35 <appender-ref ref="async-console" />
36 <appender-ref ref="async-file" />