Code example for FileHandler

Methods: setFormatter, setLevel

0
    private static void resetLoggingHandlers() 
    { 
        FMLRelaunchLog$ConsoleLogThread.wrappedHandler.setLevel(Level.parse(System.getProperty("fml.log.level", "INFO")));
        log.myLog.addHandler(new FMLRelaunchLog$ConsoleLogWrapper((FMLRelaunchLog$1)null));
        FMLRelaunchLog$ConsoleLogThread.wrappedHandler.setFormatter(formatter);
        fileHandler.setLevel(Level.ALL);
        fileHandler.setFormatter(formatter);
        log.myLog.addHandler(fileHandler);
    } 
 
    public static void loadLogConfiguration(File var0)
    { 
        if (var0 != null && var0.exists() && var0.canRead())
        { 
            try 
            { 
                LogManager.getLogManager().readConfiguration(new FileInputStream(var0));
                resetLoggingHandlers(); 
            } 
            catch (Exception var2)
            {