From e6b0d43d66f3d310eea520c802fd0a2aa71edcfe Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 14 Feb 2020 13:58:52 +1100 Subject: [PATCH] Allow configuring console log level via system property --- log/src/main/java/net/md_5/bungee/log/BungeeLogger.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java b/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java index 9e1f2569..c2062bf8 100644 --- a/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java +++ b/log/src/main/java/net/md_5/bungee/log/BungeeLogger.java @@ -30,7 +30,7 @@ public class BungeeLogger extends Logger addHandler( fileHandler ); ColouredWriter consoleHandler = new ColouredWriter( reader ); - consoleHandler.setLevel( Level.INFO ); + consoleHandler.setLevel( Level.parse( System.getProperty( "net.md_5.bungee.console-log-level", "INFO" ) ) ); consoleHandler.setFormatter( new ConciseFormatter( true ) ); addHandler( consoleHandler ); } catch ( IOException ex )