    001package cpw.mods.fml.common;
    002
    003import java.util.logging.Level;
    004import java.util.logging.Logger;
    005
    006public class FMLLog
    007{
    008    private static cpw.mods.fml.relauncher.FMLRelaunchLog coreLog = cpw.mods.fml.relauncher.FMLRelaunchLog.log;
    009
    010    public static void log(String logChannel, Level level, String format, Object... data)
    011    {
    012        coreLog.log(logChannel, level, format, data);
    013    }
    014
    015    public static void log(Level level, String format, Object... data)
    016    {
    017        coreLog.log(level, format, data);
    018    }
    019
    020    public static void log(String logChannel, Level level, Throwable ex, String format, Object... data)
    021    {
    022        coreLog.log(logChannel, level, ex, format, data);
    023    }
    024
    025    public static void log(Level level, Throwable ex, String format, Object... data)
    026    {
    027        coreLog.log(level, ex, format, data);
    028    }
    029
    030    public static void severe(String format, Object... data)
    031    {
    032        log(Level.SEVERE, format, data);
    033    }
    034
    035    public static void warning(String format, Object... data)
    036    {
    037        log(Level.WARNING, format, data);
    038    }
    039
    040    public static void info(String format, Object... data)
    041    {
    042        log(Level.INFO, format, data);
    043    }
    044
    045    public static void fine(String format, Object... data)
    046    {
    047        log(Level.FINE, format, data);
    048    }
    049
    050    public static void finer(String format, Object... data)
    051    {
    052        log(Level.FINER, format, data);
    053    }
    054
    055    public static void finest(String format, Object... data)
    056    {
    057        log(Level.FINEST, format, data);
    058    }
    059    public static Logger getLogger()
    060    {
    061        return coreLog.getLogger();
    062    }
    063
    064    public static void makeLog(String logChannel)
    065    {
    066        coreLog.makeLog(logChannel);
    067    }
    068}