mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-31 20:52:56 +08:00
Improve logging pattern by including caller class name
This commit is contained in:
parent
ccdfd15bb8
commit
55b692561f
@ -3,7 +3,7 @@
|
||||
|
||||
<appender name="STDOUT" class="emu.grasscutter.utils.JlineLogbackAppender">
|
||||
<encoder>
|
||||
<pattern>[%d{HH:mm:ss}] [%highlight(%level)] %msg%n</pattern>
|
||||
<pattern>%d{HH:mm:ss} <%highlight(%level):%gray(%class{0})> %msg%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
|
||||
@ -13,7 +13,7 @@
|
||||
<maxHistory>24</maxHistory>
|
||||
</rollingPolicy>
|
||||
<encoder>
|
||||
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} - %m%n</pattern>
|
||||
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} <%level:%class> %m%n</pattern>
|
||||
</encoder>
|
||||
</appender>
|
||||
|
||||
@ -24,4 +24,4 @@
|
||||
<appender-ref ref="STDOUT" />
|
||||
<appender-ref ref="FILE" />
|
||||
</root>
|
||||
</Configuration>
|
||||
</Configuration>
|
||||
|
Loading…
Reference in New Issue
Block a user