mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 22:23:20 +08:00
050784dfab
* improve server side command line input * prevent multiline logs from covering typed commands * reduce text in console * resolve conflicts caused by multilanguage Co-authored-by: Magix <kobedo11@gmail.com>
22 lines
801 B
XML
22 lines
801 B
XML
<Configuration>
|
|
<appender name="STDOUT" class="emu.grasscutter.utils.JlineLogbackAppender">
|
|
<encoder>
|
|
<pattern>[%d{HH:mm:ss}] [%highlight(%level)] %msg%n</pattern>
|
|
</encoder>
|
|
</appender>
|
|
<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>
|
|
<logger name="org.reflections" level="OFF"/>
|
|
<root level="INFO">
|
|
<appender-ref ref="STDOUT" />
|
|
<appender-ref ref="FILE" />
|
|
</root>
|
|
</Configuration> |