2022-04-17 20:43:07 +08:00
|
|
|
<Configuration>
|
2022-05-08 18:48:06 +08:00
|
|
|
<variable name="LOG_LEVEL" value="${LOG_LEVEL:-INFO}" />
|
|
|
|
|
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-05-08 20:30:48 +08:00
|
|
|
<pattern>%d{HH:mm:ss} <%highlight(%level):%gray(%class{0})> %msg%n</pattern>
|
2022-04-17 20:43:07 +08:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
2022-06-27 01:03:10 +08:00
|
|
|
|
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">
|
2022-05-19 05:21:25 +08:00
|
|
|
<fileNamePattern>logs/log.%d{yyyy-MM-dd}_%d{HH}.log.gz</fileNamePattern>
|
2022-04-22 13:05:06 +08:00
|
|
|
<maxHistory>24</maxHistory>
|
|
|
|
</rollingPolicy>
|
|
|
|
<encoder>
|
2022-05-08 20:30:48 +08:00
|
|
|
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} <%level:%class> %m%n</pattern>
|
2022-04-22 13:05:06 +08:00
|
|
|
</encoder>
|
|
|
|
</appender>
|
2022-06-27 01:03:10 +08:00
|
|
|
|
2022-05-20 20:48:20 +08:00
|
|
|
<appender name="SERVEREVENT" class="emu.grasscutter.utils.ServerLogEventAppender">
|
|
|
|
<encoder>
|
|
|
|
<pattern>%d{HH:mm:ss} <%highlight(%level):%gray(%class{0})> %msg%n</pattern>
|
|
|
|
</encoder>
|
|
|
|
</appender>
|
2022-05-08 18:48:06 +08:00
|
|
|
|
2022-09-01 21:34:45 +08:00
|
|
|
<logger name="io.javalin" level="OFF" />
|
2022-06-27 01:03:10 +08:00
|
|
|
<logger name="org.quartz" level="OFF" />
|
2022-05-08 18:48:06 +08:00
|
|
|
<logger name="org.reflections" level="OFF" />
|
2022-06-27 01:03:10 +08:00
|
|
|
<logger name="org.eclipse.jetty" level="OFF" />
|
|
|
|
|
2022-05-08 18:48:06 +08:00
|
|
|
<logger name="emu.grasscutter" level="${LOG_LEVEL}" />
|
|
|
|
|
2022-04-17 20:43:07 +08:00
|
|
|
<root level="INFO">
|
|
|
|
<appender-ref ref="STDOUT" />
|
2022-04-22 13:05:06 +08:00
|
|
|
<appender-ref ref="FILE" />
|
2022-05-20 20:48:20 +08:00
|
|
|
<appender-ref ref="SERVEREVENT" />
|
2022-04-17 20:43:07 +08:00
|
|
|
</root>
|
2022-05-08 20:30:48 +08:00
|
|
|
</Configuration>
|