Skip to content

Instantly share code, notes, and snippets.

@drazisil
Created April 2, 2020 18:41
Show Gist options
  • Save drazisil/e82b7dc151593dee4d0b4518958cea42 to your computer and use it in GitHub Desktop.
Save drazisil/e82b7dc151593dee4d0b4518958cea42 to your computer and use it in GitHub Desktop.
The default log4j configuration file for Minecraft, as of 1.14
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" packages="com.mojang.util">
<Appenders>
<Console name="SysOut" target="SYSTEM_OUT">
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
</Console>
<Queue name="ServerGuiConsole">
<PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" />
</Queue>
<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" />
</filters>
<AppenderRef ref="SysOut"/>
<AppenderRef ref="File"/>
<AppenderRef ref="ServerGuiConsole"/>
</Root>
</Loggers>
</Configuration>
@NotNekodev
Copy link

Thanks!

@drazisil
Copy link
Author

Hi @RaphtikAtGHG,

Glad you found it helpful! I'll take a peek at your OS, it sounds cool.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment