package net.aeronica.mods.mxtune.util;

import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

import net.aeronica.mods.mxtune.MXTuneMain;

/** TODO: This need to be reviewed - Use Forge's logger? */
public class ModLogger
{

    private static Logger modLogger;

    public static void initializeLogging()
    {
        modLogger = LogManager.getLogger(MXTuneMain.MODID);
    }

    public static void info(String msg)
    {
        modLogger.log(Level.INFO, msg);
    }

    public static void warning(String msg)
    {
        modLogger.log(Level.WARN, msg);
    }

    public static void error(String msg)
    {
        modLogger.log(Level.ERROR, msg);
    }

    public static void debug(String msg)
    {
        modLogger.log(Level.DEBUG, msg);
    }
}

@@ -111,273 +111,361 @@
 .Log
-Mana
 ger;%0A
-import org.apache.logging.log4j.Logger;%0A%0Aimport net.aeronica.mods.mxtune.MXTuneMain;%0A%0A/** TODO: This need to be reviewed - Use Forge's logger? */%0Apublic class ModLogger%0A%7B%0A%0A    private static Logger modLogger;%0A%0A    public static void initializeLogging()%0A   
+%0Apublic class ModLogger %7B%0A%0A    private static Logger logger;%0A%0A    public static void setLogger(Logger logger) %7B%0A        if (ModLogger.logger != null) %7B%0A            throw new IllegalStateException(%22Attempt to replace logger%22);%0A        %7D%0A        ModLogger.logger = logger;%0A    %7D%0A%0A    public static void log(Level level, String format, Object... data)
  %7B%0A 
@@ -475,57 +475,41 @@
     
-modL
+l
 ogger
- = LogManager.getLogger(MXTuneMain.MODID
+.printf(level, format, data
 );%0A 
@@ -553,56 +553,181 @@
 ing 
-msg)
+format, Object... data)%7B%0A        log(Level.INFO, format, data);
 %0A    
-%7B
+%7D
 %0A    
+%0A
     
-modLogger.log(Level.INFO, msg
+public static void debug(String format, Object... data)%7B%0A        log(Level.DEBUG, format, data
 );%0A 
@@ -723,32 +723,36 @@
 t, data);%0A    %7D%0A
+    
 %0A    public stat
@@ -778,37 +778,41 @@
 ing 
-msg)%0A    %7B%0A        modLogger.
+format, Object... data)%7B%0A        
 log(
@@ -823,19 +823,28 @@
 l.WARN, 
-msg
+format, data
 );%0A    %7D
@@ -885,37 +885,41 @@
 ing 
-msg)%0A    %7B%0A        modLogger.
+format, Object... data)%7B%0A        
 log(
@@ -931,19 +931,28 @@
 .ERROR, 
-msg
+format, data
 );%0A    %7D
@@ -976,29 +976,29 @@
 ic void 
-debug
+fatal
 (String 
 msg)%0A   
@@ -993,57 +993,70 @@
 ing 
-msg)%0A    %7B%0A        modLogger.log(Level.DEBUG, msg
+format, Object... data)%7B%0A        log(Level.FATAL, format, data
 );%0A 
@@ -1060,10 +1060,11 @@
 ;%0A    %7D%0A
+%0A
 %7D%0A

Update ModLogger to allow use of string formats.