/moCreatures/server/core/sources/net/minecraft/src/ConsoleLogManager.java
Java | 41 lines | 28 code | 8 blank | 5 comment | 0 complexity | f0ad077b0536d0cf4aaa3d0664f13bac MD5 | raw file
- // Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
- // Jad home page: http://www.kpdus.com/jad.html
- // Decompiler options: packimports(3) braces deadcode
-
- package net.minecraft.src;
-
- import java.io.IOException;
- import java.util.logging.*;
-
- // Referenced classes of package net.minecraft.src:
- // ConsoleLogFormatter
-
- public class ConsoleLogManager
- {
-
- public ConsoleLogManager()
- {
- }
-
- public static void init()
- {
- ConsoleLogFormatter consolelogformatter = new ConsoleLogFormatter();
- logger.setUseParentHandlers(false);
- ConsoleHandler consolehandler = new ConsoleHandler();
- consolehandler.setFormatter(consolelogformatter);
- logger.addHandler(consolehandler);
- try
- {
- FileHandler filehandler = new FileHandler("server.log", true);
- filehandler.setFormatter(consolelogformatter);
- logger.addHandler(filehandler);
- }
- catch(Exception exception)
- {
- logger.log(Level.WARNING, "Failed to log to server.log", exception);
- }
- }
-
- public static Logger logger = Logger.getLogger("Minecraft");
-
- }