-
-
Notifications
You must be signed in to change notification settings - Fork 435
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NOISSUE Add embedded logging config for 1.21 and above
- Loading branch information
1 parent
950ad3d
commit 9da1b6a
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
launcher/src/main/resources/com/skcraft/launcher/logging/client-1.21.2.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Configuration status="WARN"> | ||
<Appenders> | ||
<Console name="SysOut" target="SYSTEM_OUT"> | ||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n"/> | ||
</Console> | ||
<RollingRandomAccessFile name="File" fileName="logs/latest.log" filePattern="logs/%d{yyyy-MM-dd}-%i.log.gz"> | ||
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg{nolookups}%n"/> | ||
<Policies> | ||
<TimeBasedTriggeringPolicy/> | ||
<OnStartupTriggeringPolicy/> | ||
</Policies> | ||
</RollingRandomAccessFile> | ||
<Listener name="Tracy"> | ||
<PatternLayout pattern="(%F:%L): %msg{nolookups}%n"/> | ||
</Listener> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<filters> | ||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL"/> | ||
</filters> | ||
<AppenderRef ref="SysOut"/> | ||
<AppenderRef ref="File"/> | ||
<AppenderRef ref="Tracy"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |