me.mjolnir.mineconomy.internal.util
Class IOH

java.lang.Object
  extended by me.mjolnir.mineconomy.internal.util.IOH

public class IOH
extends java.lang.Object

Streamlines log code

Author:
MjolnirCommando

Field Summary
static int DEV
           
static boolean gui
           
static int IMPORTANT
           
static int INFO
           
static int VERY_IMPORTANT
           
static int WARNING
           
 
Constructor Summary
IOH()
           
 
Method Summary
static void clearLog()
           
static void error(java.lang.String message, java.lang.Exception exception)
          Logs an exception stack trace plus an optional message.
static void loadLog()
           
static void log(java.lang.String message, int priority)
          Appends specified message to the log
static void saveLog()
           
static void updateGUILog()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gui

public static boolean gui

DEV

public static final int DEV
See Also:
Constant Field Values

INFO

public static final int INFO
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

IMPORTANT

public static final int IMPORTANT
See Also:
Constant Field Values

VERY_IMPORTANT

public static final int VERY_IMPORTANT
See Also:
Constant Field Values
Constructor Detail

IOH

public IOH()
Method Detail

log

public static void log(java.lang.String message,
                       int priority)
Appends specified message to the log

Parameters:
message -
priority -

error

public static void error(java.lang.String message,
                         java.lang.Exception exception)
Logs an exception stack trace plus an optional message.

Parameters:
message - The error message to print, or null if just the exception's message should be used alone.
exception - The exception that was thrown.

clearLog

public static void clearLog()

updateGUILog

public static void updateGUILog()

saveLog

public static void saveLog()

loadLog

public static void loadLog()