2016-10-25 18:57:11 +02:00
|
|
|
From d6ed22b02af33b339cf82b3005061132f26216b9 Mon Sep 17 00:00:00 2001
|
2016-05-28 18:34:39 +02:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Fri, 11 Sep 2015 23:50:52 -0400
|
|
|
|
Subject: [PATCH] Allow configuration of the log file path/filename
|
|
|
|
|
|
|
|
|
2016-07-17 03:12:39 +02:00
|
|
|
diff --git a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
2016-10-25 18:57:11 +02:00
|
|
|
index e0512f2..b729ff1 100644
|
2016-07-17 03:12:39 +02:00
|
|
|
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
|
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
2016-10-25 18:57:11 +02:00
|
|
|
@@ -211,7 +211,7 @@ public class BungeeCord extends ProxyServer
|
2016-07-17 03:12:39 +02:00
|
|
|
consoleReader = new ConsoleReader();
|
|
|
|
consoleReader.setExpandEvents( false );
|
2016-05-28 18:34:39 +02:00
|
|
|
|
2016-07-17 03:12:39 +02:00
|
|
|
- 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 ) );
|
2016-05-28 18:34:39 +02:00
|
|
|
|
|
|
|
--
|
2016-07-17 03:12:39 +02:00
|
|
|
2.7.4 (Apple Git-66)
|
2016-05-28 18:34:39 +02:00
|
|
|
|