summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft')
-rw-r--r--src/main/java/net/minecraft/server/ConsoleLogManager.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/net/minecraft/server/ConsoleLogManager.java b/src/main/java/net/minecraft/server/ConsoleLogManager.java
index eae9dab0..806df662 100644
--- a/src/main/java/net/minecraft/server/ConsoleLogManager.java
+++ b/src/main/java/net/minecraft/server/ConsoleLogManager.java
@@ -37,7 +37,13 @@ public class ConsoleLogManager {
a.addHandler(consolehandler);
try {
- FileHandler filehandler = new FileHandler("server.log", true);
+ // CraftBukkit start
+ String pattern = (String)server.options.valueOf("log-pattern");
+ int limit = ((Integer)server.options.valueOf("log-limit")).intValue();
+ int count = ((Integer)server.options.valueOf("log-count")).intValue();
+ boolean append = ((Boolean)server.options.valueOf("log-append")).booleanValue();
+ FileHandler filehandler = new FileHandler(pattern, limit, count, append);
+ // CraftBukkit start
filehandler.setFormatter(consolelogformatter);
a.addHandler(filehandler);