|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.ucsb.nceas.morpho.util.Log
The Log is a utility class for logging messages to stdout, stderr, a file, or a dialog box. By default you can call just the static method Log.debug() to log messages. If you want to turn debugging off or change the default severity, use Log.getLog() to get the Log instance, and then call setDubug() and setDebugLevel(), respectively.
Method Summary | |
static void |
debug(int severity,
java.lang.String message)
Print debugging messages based on severity level, where severity level 1 are the most critical and higher numbers are more trivial messages. |
static Log |
getLog()
Get the single instance of the Log |
static void |
setDebug(boolean shouldDebug)
Turn debugging on or off |
static void |
setDebugLevel(int level)
Set the threshold severity for debugging output |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Log getLog()
public static void setDebug(boolean shouldDebug)
public static void setDebugLevel(int level)
public static void debug(int severity, java.lang.String message)
severity
- the severity of the debug messagemessage
- the message to log
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |