|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.monkeycoder.monkeynes.base.DebugLog
This class is a logger singleton that can direct log output to several places.
Originally part of the MonkeyNES project.
| Field Summary | |
static int |
MODE_FILE
|
static int |
MODE_NULL
|
static int |
MODE_STD_ERR
|
static int |
MODE_STD_OUT
|
| Method Summary | |
static DebugLog |
getInst()
Returns the only allowed instance of this class. |
static int |
getMode()
Returns the current redirection mode. |
static int |
getVerbosity()
Returns the current verbosity threshhold. |
static void |
log(int inVerbosity,
String inText)
Records a log entry using the provided verbosity threshhold value. |
static void |
log(String inText)
Records a log entry using the maximum verbosity threshhold of 5. |
static void |
restoreLastMode()
Puts the DebugLog back into its previous redirection mode. |
static void |
restoreLastVerbosity()
Puts the DebugLog back into its previous verbosity threshhold. |
static void |
setMode(int inMode)
Sets the current redirection mode. |
static void |
setVerbosity(int inVThresh)
Sets the current verbosity threshhold. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int MODE_NULL
public static final int MODE_STD_OUT
public static final int MODE_STD_ERR
public static final int MODE_FILE
| Method Detail |
public static DebugLog getInst()
public static void log(String inText)
inText - The text for the log entry.
public static void log(int inVerbosity,
String inText)
inVerbosity - The verbosity threshhold required to see this log entry.inText - The text for the log entry.public static void setMode(int inMode)
inMode - The redirection mode to which the DebugLog will be set.public static int getMode()
public static void restoreLastMode()
public static void setVerbosity(int inVThresh)
inVThresh - The verbosity threshhold to which the DebugLog will be set.public static int getVerbosity()
public static void restoreLastVerbosity()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||