2022-04-17 20:43:07 +08:00
|
|
|
<Configuration>
|
2022-05-03 20:44:52 +08:00
|
|
|
<appender name="STDOUT" class="emu.grasscutter.utils.JlineLogbackAppender">
|
2022-04-17 20:43:07 +08:00
|
|
|
<encoder>
|
2022-04-19 10:10:51 +08:00
|
|
|
<pattern>[%d{HH:mm:ss}] [%highlight(%level)] %msg%n</pattern>
|
2022-04-17 20:43:07 +08:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
2022-04-22 13:05:06 +08:00
|
|
|
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
|
|
|
<file>logs/latest.log</file>
|
|
|
|
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
|
|
|
|
<fileNamePattern>logs/log.%d{yyyy-MM-dd}_%d{HH}.log.tar.gz</fileNamePattern>
|
|
|
|
<maxHistory>24</maxHistory>
|
|
|
|
</rollingPolicy>
|
|
|
|
<encoder>
|
|
|
|
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} - %m%n</pattern>
|
|
|
|
</encoder>
|
|
|
|
</appender>
|
2022-04-17 20:43:07 +08:00
|
|
|
<logger name="org.reflections" level="OFF"/>
|
|
|
|
<root level="INFO">
|
|
|
|
<appender-ref ref="STDOUT" />
|
2022-04-22 13:05:06 +08:00
|
|
|
<appender-ref ref="FILE" />
|
2022-04-17 20:43:07 +08:00
|
|
|
</root>
|
|
|
|
</Configuration>
|