mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-20 01:05:14 +01:00
bcad1e9b55
Different version of Git were constantely changing the Metrics patch - it wasn't worth it
23 lines
1.0 KiB
Diff
23 lines
1.0 KiB
Diff
From ebc0dcc10f56b2c1f3b26535702849f94b4ec3e6 Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
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 bd81d66..a3c8caf 100644
|
|
--- a/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/BungeeCord.java
|
|
@@ -210,7 +210,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.10.0
|
|
|