Created
December 11, 2013 11:55
-
-
Save EvilSeph/7909129 to your computer and use it in GitHub Desktop.
Minecraft 1.7 default log4j2.xml
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<Configuration status="WARN" packages="net.minecraft,com.mojang"> | |
<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> |
@captbunzo I am just starting to dig into this, but my current understanding is that Console is stdout--what you'll see in a multiplayer server window, for example--and Queue is to the GUI if present.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm working on tweaking my log config. I'm curious why both Console and Queue appenders are required. They seem to do effectively the same thing. What am I missing?