Class ServerLog
java.lang.Object
|
+--ServerLog
- public class ServerLog
- extends java.lang.Object
Static methods log messages to a file. This Class is used to log and debug server activity.
Before this class is used, it must be intialized by passing the full path of the
directory in which the log file will be created by calling the
setLogDirectory method. It only needs to be initialized once.
|
Field Summary |
static java.lang.String |
endLine
|
|
Method Summary |
static void |
logEntry(java.lang.Exception ex)
|
static void |
logEntry(java.lang.String entry)
|
static void |
logEntry(java.lang.String entry,
java.lang.Exception ex)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
endLine
public static java.lang.String endLine
ServerLog
public ServerLog()
logEntry
public static void logEntry(java.lang.String entry)
logEntry
public static void logEntry(java.lang.Exception ex)
logEntry
public static void logEntry(java.lang.String entry,
java.lang.Exception ex)