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