Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
beea95fd
Commit
beea95fd
authored
May 08, 2022
by
HotaruYS
Committed by
GitHub
May 08, 2022
Browse files
Improve logging pattern by including caller class name
parent
d7834852
Changes
1
Show whitespace changes
Inline
Side-by-side
src/main/resources/logback.xml
View file @
beea95fd
...
@@ -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}
<
%highlight(%level)
:%gray(%class{0})
>
%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'}
<
%level:%class
>
%m%n
</pattern>
</encoder>
</encoder>
</appender>
</appender>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment