Commit beea95fd authored by HotaruYS's avatar HotaruYS Committed by GitHub
Browse files

Improve logging pattern by including caller class name

parent d7834852
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<appender name="STDOUT" class="emu.grasscutter.utils.JlineLogbackAppender"> <appender name="STDOUT" class="emu.grasscutter.utils.JlineLogbackAppender">
<encoder> <encoder>
<pattern>[%d{HH:mm:ss}] [%highlight(%level)] %msg%n</pattern> <pattern>%d{HH:mm:ss} &lt;%highlight(%level):%gray(%class{0})&gt; %msg%n</pattern>
</encoder> </encoder>
</appender> </appender>
<appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> <appender name="FILE" class="ch.qos.logback.core.rolling.RollingFileAppender">
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<maxHistory>24</maxHistory> <maxHistory>24</maxHistory>
</rollingPolicy> </rollingPolicy>
<encoder> <encoder>
<pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} - %m%n</pattern> <pattern>%d{yyyy-MM-dd'T'HH:mm:ss'Z'} &lt;%level:%class&gt; %m%n</pattern>
</encoder> </encoder>
</appender> </appender>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment