mirror of
https://github.com/PaperMC/Waterfall.git
synced 2024-11-28 13:15:31 +01:00
05fc872738
@aikar suggested this so patches don't have conflicts with netty 4.1
23 lines
903 B
Diff
23 lines
903 B
Diff
From 8a70c2911d76569ad26348f69161a8d425b8999d 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/log/BungeeLogger.java b/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
|
|
index 94e924b..cde3194 100644
|
|
--- a/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
|
|
+++ b/proxy/src/main/java/net/md_5/bungee/log/BungeeLogger.java
|
|
@@ -27,7 +27,7 @@ public class BungeeLogger extends Logger
|
|
|
|
try
|
|
{
|
|
- FileHandler fileHandler = new FileHandler( "proxy.log", 1 << 24, 8, true );
|
|
+ FileHandler fileHandler = new FileHandler( System.getProperty("bungee.log-file", "proxy.log"), 1 << 24, 8, true );
|
|
fileHandler.setFormatter( formatter );
|
|
addHandler( fileHandler );
|
|
|
|
--
|
|
2.8.3
|
|
|