2013-03-08 00:25:48 +00:00
|
|
|
/*
|
|
|
|
* Forge Mod Loader
|
|
|
|
* Copyright (c) 2012-2013 cpw.
|
|
|
|
* All rights reserved. This program and the accompanying materials
|
|
|
|
* are made available under the terms of the GNU Lesser Public License v2.1
|
|
|
|
* which accompanies this distribution, and is available at
|
|
|
|
* http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
2013-11-10 16:49:06 +00:00
|
|
|
*
|
2013-03-08 00:25:48 +00:00
|
|
|
* Contributors:
|
|
|
|
* cpw - implementation
|
|
|
|
*/
|
|
|
|
|
2012-07-23 19:03:17 +00:00
|
|
|
package cpw.mods.fml.common;
|
|
|
|
|
|
|
|
import java.util.logging.Level;
|
|
|
|
import java.util.logging.Logger;
|
|
|
|
|
2013-11-10 16:49:06 +00:00
|
|
|
@SuppressWarnings("static-access")
|
2012-07-23 19:03:17 +00:00
|
|
|
public class FMLLog
|
|
|
|
{
|
2012-08-06 20:12:50 +00:00
|
|
|
private static cpw.mods.fml.relauncher.FMLRelaunchLog coreLog = cpw.mods.fml.relauncher.FMLRelaunchLog.log;
|
2012-07-23 19:03:17 +00:00
|
|
|
|
2013-01-30 23:57:21 +00:00
|
|
|
public static void log(String logChannel, Level level, String format, Object... data)
|
|
|
|
{
|
|
|
|
coreLog.log(logChannel, level, format, data);
|
|
|
|
}
|
|
|
|
|
2012-07-23 19:03:17 +00:00
|
|
|
public static void log(Level level, String format, Object... data)
|
|
|
|
{
|
2012-08-26 16:52:50 +00:00
|
|
|
coreLog.log(level, format, data);
|
2012-07-23 19:03:17 +00:00
|
|
|
}
|
|
|
|
|
2013-01-30 23:57:21 +00:00
|
|
|
public static void log(String logChannel, Level level, Throwable ex, String format, Object... data)
|
|
|
|
{
|
|
|
|
coreLog.log(logChannel, level, ex, format, data);
|
|
|
|
}
|
|
|
|
|
2012-07-23 19:03:17 +00:00
|
|
|
public static void log(Level level, Throwable ex, String format, Object... data)
|
|
|
|
{
|
2012-08-26 16:52:50 +00:00
|
|
|
coreLog.log(level, ex, format, data);
|
2012-07-23 19:03:17 +00:00
|
|
|
}
|
2012-07-30 02:54:59 +00:00
|
|
|
|
2012-07-23 19:03:17 +00:00
|
|
|
public static void severe(String format, Object... data)
|
|
|
|
{
|
|
|
|
log(Level.SEVERE, format, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void warning(String format, Object... data)
|
|
|
|
{
|
|
|
|
log(Level.WARNING, format, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void info(String format, Object... data)
|
|
|
|
{
|
|
|
|
log(Level.INFO, format, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void fine(String format, Object... data)
|
|
|
|
{
|
|
|
|
log(Level.FINE, format, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void finer(String format, Object... data)
|
|
|
|
{
|
|
|
|
log(Level.FINER, format, data);
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void finest(String format, Object... data)
|
|
|
|
{
|
|
|
|
log(Level.FINEST, format, data);
|
|
|
|
}
|
2012-07-30 02:54:59 +00:00
|
|
|
public static Logger getLogger()
|
2012-07-23 19:03:17 +00:00
|
|
|
{
|
2012-07-30 02:54:59 +00:00
|
|
|
return coreLog.getLogger();
|
2012-07-23 19:03:17 +00:00
|
|
|
}
|
2013-01-30 23:57:21 +00:00
|
|
|
|
|
|
|
public static void makeLog(String logChannel)
|
|
|
|
{
|
|
|
|
coreLog.makeLog(logChannel);
|
|
|
|
}
|
2012-07-23 19:03:17 +00:00
|
|
|
}
|