summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server/ConsoleLogManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/net/minecraft/server/ConsoleLogManager.java')
-rw-r--r--src/main/java/net/minecraft/server/ConsoleLogManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main/java/net/minecraft/server/ConsoleLogManager.java b/src/main/java/net/minecraft/server/ConsoleLogManager.java
index 6de400b4..641c8ca7 100644
--- a/src/main/java/net/minecraft/server/ConsoleLogManager.java
+++ b/src/main/java/net/minecraft/server/ConsoleLogManager.java
@@ -6,6 +6,9 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.logging.Handler; // CraftBukkit
+import jline.ConsoleReader;
+import org.bukkit.craftbukkit.util.ShortConsoleLogFormatter;
+import org.bukkit.craftbukkit.util.TerminalConsoleHandler;
public class ConsoleLogManager {
@@ -14,11 +17,12 @@ public class ConsoleLogManager {
public ConsoleLogManager() {}
- public static void a() {
+ // Craftbukkit - change of method signature!
+ public static void a(ConsoleReader reader) {
ConsoleLogFormatter consolelogformatter = new ConsoleLogFormatter();
a.setUseParentHandlers(false);
- ConsoleHandler consolehandler = new ConsoleHandler();
+ ConsoleHandler consolehandler = new TerminalConsoleHandler(reader);
// CraftBukkit start
for (Handler handler: global.getHandlers()) {
@@ -26,7 +30,7 @@ public class ConsoleLogManager {
}
// CraftBukkit end
- consolehandler.setFormatter(consolelogformatter);
+ consolehandler.setFormatter(new ShortConsoleLogFormatter()); // Craftbukkit
a.addHandler(consolehandler);
global.addHandler(consolehandler); // CraftBukkit