From fde5ec36e752994233fa7b9237af933c2a981606 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sun, 21 Jul 2019 16:51:08 +0200 Subject: [PATCH] Update TerminalConsoleAppender to 1.2.0 Add log4j.skipJansi to prevent Log4j from initializing a Jansi terminal. It is redundant because this is handled by TCA and it will be only active for a few seconds until TCA is loaded. --- proxy/build.gradle | 2 +- proxy/src/main/resources/log4j2.component.properties | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/build.gradle b/proxy/build.gradle index 02aa8fa9..675dd036 100644 --- a/proxy/build.gradle +++ b/proxy/build.gradle @@ -57,7 +57,7 @@ dependencies { compile "org.apache.logging.log4j:log4j-iostreams:${log4jVersion}" compile 'net.sf.jopt-simple:jopt-simple:5.0.4' // command-line options - compile 'net.minecrell:terminalconsoleappender:1.2.0-SNAPSHOT' + compile 'net.minecrell:terminalconsoleappender:1.2.0' runtime 'org.jline:jline-terminal-jansi:3.12.1' // Needed for JLine runtime 'com.lmax:disruptor:3.4.2' // Async loggers diff --git a/proxy/src/main/resources/log4j2.component.properties b/proxy/src/main/resources/log4j2.component.properties index 6ed08f31..e43f5dac 100644 --- a/proxy/src/main/resources/log4j2.component.properties +++ b/proxy/src/main/resources/log4j2.component.properties @@ -1 +1,2 @@ log4j2.contextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector +log4j.skipJansi=true