From 14a65cdadacf3f26e2d8e0bd38b5aa6b431de19e Mon Sep 17 00:00:00 2001 From: Aikar Date: Fri, 11 Sep 2015 23:50:52 -0400 Subject: [PATCH] Allow configuration of the log file path/filename diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java index fbec9e86..9b07c805 100644 --- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java +++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java @@ -211,7 +211,7 @@ public class BungeeCord extends ProxyServer consoleReader = new ConsoleReader(); consoleReader.setExpandEvents( false ); - logger = new BungeeLogger( "BungeeCord", "proxy.log", consoleReader ); + logger = new BungeeLogger( "BungeeCord", System.getProperty("bungee.log-file", "proxy.log"), consoleReader ); System.setErr( new PrintStream( new LoggingOutputStream( logger, Level.SEVERE ), true ) ); System.setOut( new PrintStream( new LoggingOutputStream( logger, Level.INFO ), true ) ); -- 2.12.0