|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.moyoman.log.SystemLog
This class logs events that occur in the server.
Field Summary | |
private static String |
debugFile
The name of the file for writing out debug statements. |
private static boolean |
debugFlag
|
private static String |
errorFile
The name of the file for writing out error statements. |
private static boolean |
errorFlag
|
private static String |
fatalFile
The name of the file for writing out fatal statements. |
private static String |
infoFile
The name of the file for writing out informational statements. |
private static boolean |
infoFlag
|
private static String |
level
The level of message to actually write out. |
private static String |
warningFile
The name of the file for writing out warning statements. |
private static boolean |
warningFlag
|
Constructor Summary | |
SystemLog()
|
Method Summary | |
static String |
convertExceptionToString(Exception e)
Convert the information from the exception into a string. |
static void |
debug(String msg)
Log a debug event. |
static void |
error(Exception e)
Write out the exception as an error. |
static void |
error(String msg)
Log an error event. |
static void |
fatal(Exception e)
Write out the exception as a fatal error. |
static void |
fatal(String msg)
Log a fatal event and exit. |
static void |
information(String msg)
Log an informational event. |
static void |
warning(Exception e)
Write out the exception as a warning. |
static void |
warning(String msg)
Log a warning event. |
private static void |
writeFile(String fname,
String msg)
Write out the information to the file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static String debugFile
private static String infoFile
private static String warningFile
private static String errorFile
private static String fatalFile
private static String level
private static boolean debugFlag
private static boolean infoFlag
private static boolean warningFlag
private static boolean errorFlag
Constructor Detail |
public SystemLog()
Method Detail |
public static void debug(String msg)
msg
- The message to log.public static void information(String msg)
msg
- The message to log.public static void warning(String msg)
msg
- The message to log.public static void fatal(String msg)
msg
- The message to log.public static void error(String msg)
msg
- The message to log.public static void warning(Exception e)
e
- - The exception to be written out.public static void error(Exception e)
e
- - The exception to be written out.public static void fatal(Exception e)
e
- - The exception to be written out.public static String convertExceptionToString(Exception e)
e
- - The exception to be converted.
private static void writeFile(String fname, String msg)
fname
- - The file namemsg
- - The message to be written out.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |