TFM-4.3-Reloaded/src/me/StevenLawson/TotalFreedomMod/TFM_Log.java
Steven Lawson 256e29fcc6 Change to 1.5 log handle.
Increment version for 1.5 development.
2013-03-16 15:59:52 -04:00

55 lines
1.2 KiB
Java

package me.StevenLawson.TotalFreedomMod;
import java.util.logging.Level;
import java.util.logging.Logger;
public class TFM_Log
{
private static final Logger logger = Logger.getLogger("Minecraft-Server");
private TFM_Log()
{
throw new AssertionError();
}
private static void log(Level level, String message, boolean raw)
{
logger.log(level, (raw ? "" : "[" + TotalFreedomMod.pluginName + "]: ") + message);
}
public static void info(String message)
{
TFM_Log.info(message, false);
}
public static void info(String message, boolean raw)
{
TFM_Log.log(Level.INFO, message, raw);
}
public static void warning(String message)
{
TFM_Log.info(message, false);
}
public static void warning(String message, boolean raw)
{
TFM_Log.log(Level.WARNING, message, raw);
}
public static void severe(String message)
{
TFM_Log.info(message, false);
}
public static void severe(String message, boolean raw)
{
TFM_Log.log(Level.SEVERE, message, raw);
}
public static void severe(Throwable ex)
{
logger.log(Level.SEVERE, null, ex);
}
}