|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.valhalla.Logger
Class used for logging/debugging
Constructor Summary | |
Logger()
|
Method Summary | |
static void |
closeLog()
Closes the log file if it's open |
static void |
debug(java.lang.String message)
Outputs to the console only if the "debug" system property is set. |
static void |
logException(java.lang.Exception ex)
Logs an exceptions stack trace if the log file is open |
static void |
setLogFile(java.lang.String file)
Sets the log file. |
static void |
write(java.lang.String message)
Output to the console - include the date and time |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Logger()
Method Detail |
public static void setLogFile(java.lang.String file)
file
- the log file locationpublic static void logException(java.lang.Exception ex)
ex
- the exceptionpublic static void closeLog()
public static void debug(java.lang.String message)
message
- The message to output to the consolepublic static void write(java.lang.String message)
message
- The message to output to the console
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |