#3109: Made file log level configurable

This commit is contained in:
Lukas Alt 2021-06-10 00:42:48 +02:00 committed by GitHub
parent 633ff1cfc8
commit 088b2045d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -26,6 +26,7 @@ public class BungeeLogger extends Logger
try try
{ {
FileHandler fileHandler = new FileHandler( filePattern, 1 << 24, 8, true ); FileHandler fileHandler = new FileHandler( filePattern, 1 << 24, 8, true );
fileHandler.setLevel( Level.parse( System.getProperty( "net.md_5.bungee.file-log-level", "INFO" ) ) );
fileHandler.setFormatter( new ConciseFormatter( false ) ); fileHandler.setFormatter( new ConciseFormatter( false ) );
addHandler( fileHandler ); addHandler( fileHandler );