diff --git a/common/src/main/java/com/fox2code/foxloader/launcher/LoggerHelper.java b/common/src/main/java/com/fox2code/foxloader/launcher/LoggerHelper.java index c0f3c03..c605e09 100644 --- a/common/src/main/java/com/fox2code/foxloader/launcher/LoggerHelper.java +++ b/common/src/main/java/com/fox2code/foxloader/launcher/LoggerHelper.java @@ -209,10 +209,14 @@ public synchronized void publish(LogRecord record) { private static class SystemOutConsoleHandler extends ConsoleHandler { SystemOutConsoleHandler() { - setOutputStream(System.out); setFormatter(new FoxLoaderConsoleLogFormatter()); setLevel(Level.ALL); } + + @Override + protected synchronized void setOutputStream(OutputStream out) throws SecurityException { + super.setOutputStream(System.out); + } } private static class CantInstallLoggerHelperException extends Exception {