Allow configuring console log level via system property
This commit is contained in:
parent
a52ea50006
commit
e6b0d43d66
@ -30,7 +30,7 @@ public class BungeeLogger extends Logger
|
|||||||
addHandler( fileHandler );
|
addHandler( fileHandler );
|
||||||
|
|
||||||
ColouredWriter consoleHandler = new ColouredWriter( reader );
|
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 ) );
|
consoleHandler.setFormatter( new ConciseFormatter( true ) );
|
||||||
addHandler( consoleHandler );
|
addHandler( consoleHandler );
|
||||||
} catch ( IOException ex )
|
} catch ( IOException ex )
|
||||||
|
Loading…
Reference in New Issue
Block a user