Skip to content

Instantly share code, notes, and snippets.

@tonybruess
Last active Aug 29, 2015
Embed
What would you like to do?
Overcast's custom log4j2 config
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" packages="net.minecraft,com.mojang.util">
<Appenders>
<Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console>
<Queue name="TerminalConsole">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n"/>
</Queue>
<RollingRandomAccessFile name="Server" fileName="/minecraft/logs/alpha/server.log" filePattern="/minecraft/logs/alpha/server-%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%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="WINDOWS_COMPAT"/>
<AppenderRef ref="Server"/>
<AppenderRef ref="TerminalConsole"/>
</Root>
</Loggers>
</Configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment