forked from SKCraft/Launcher
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Minecraft's default logging configs output XML to stdout, because the modern launcher parses it to provide a "nicer" console. We don't do that, so this commit adds embedded versions of the logging configs which just output log lines normally.
- Loading branch information
1 parent
94ae835
commit 6f7624a
Showing
3 changed files
with
64 additions
and
2 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
launcher/src/main/resources/com/skcraft/launcher/logging/client-1.12.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,24 @@ | ||
<?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> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<filters> | ||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL"/> | ||
</filters> | ||
<AppenderRef ref="SysOut"/> | ||
<AppenderRef ref="File"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |
25 changes: 25 additions & 0 deletions
25
launcher/src/main/resources/com/skcraft/launcher/logging/client-1.7.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,25 @@ | ||
<?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%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%n"/> | ||
<Policies> | ||
<TimeBasedTriggeringPolicy/> | ||
<OnStartupTriggeringPolicy/> | ||
</Policies> | ||
</RollingRandomAccessFile> | ||
</Appenders> | ||
<Loggers> | ||
<Root level="info"> | ||
<filters> | ||
<MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL"/> | ||
<RegexFilter regex=".*\$\{[^}]*\}.*" onMatch="DENY" onMismatch="NEUTRAL"/> | ||
</filters> | ||
<AppenderRef ref="SysOut"/> | ||
<AppenderRef ref="File"/> | ||
</Root> | ||
</Loggers> | ||
</Configuration> |