diff options
author | Travis Watkins <amaranth@ubuntu.com> | 2013-12-01 13:21:22 -0600 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2013-12-01 13:21:22 -0600 |
commit | 6aafe7c5a10d522efbbbc671aa831062f4b57e44 (patch) | |
tree | e2a546262213a9b839ed74c9cbafa087d7d2b130 /src/main/resources/log4j2.xml | |
parent | d48bcbe64203a95dbb55d6786ceb3549c5699cdc (diff) | |
download | craftbukkit-6aafe7c5a10d522efbbbc671aa831062f4b57e44.tar craftbukkit-6aafe7c5a10d522efbbbc671aa831062f4b57e44.tar.gz craftbukkit-6aafe7c5a10d522efbbbc671aa831062f4b57e44.tar.lz craftbukkit-6aafe7c5a10d522efbbbc671aa831062f4b57e44.tar.xz craftbukkit-6aafe7c5a10d522efbbbc671aa831062f4b57e44.zip |
Make console work on Windows again. Fixes BUKKIT-4956
Something the log4j ConsoleAppender does makes the console work correctly
on Windows. After trying to pull pieces of it out and run them manually
I decided to just put the appender back. We now once again start with the
ConsoleAppender then remove it immediately after starting.
Diffstat (limited to 'src/main/resources/log4j2.xml')
-rw-r--r-- | src/main/resources/log4j2.xml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/resources/log4j2.xml b/src/main/resources/log4j2.xml index c868e8c5..36eff853 100644 --- a/src/main/resources/log4j2.xml +++ b/src/main/resources/log4j2.xml @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <Configuration status="WARN" packages="net.minecraft,com.mojang"> <Appenders> + <Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console> <Queue name="TerminalConsole"> <PatternLayout pattern="[%d{HH:mm:ss} %level]: %msg%n" /> </Queue> @@ -17,6 +18,7 @@ <filters> <MarkerFilter marker="NETWORK_PACKETS" onMatch="DENY" onMismatch="NEUTRAL" /> </filters> + <AppenderRef ref="WINDOWS_COMPAT"/> <AppenderRef ref="File"/> <AppenderRef ref="TerminalConsole"/> </Root> |