|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.millstone.webadapter.Log
Class providing centralized logging services. The logger defines five message types, and provides methods to create messages of those types. These types are:
info - Useful information generated during normal
operation of the application
warning - An error situation has occurred, but the
operation was able to finish succesfully
error - An error situation which prevented the
operation from finishing succesfully
debug - Internal information from the application meant
for developers
exception - A Java exception reported using the logger.
Includes the exception stack trace and a possible free-form message
Currently the class offers logging only to the standard output
| Constructor Summary | |
Log()
|
|
| Method Summary | |
protected static void |
debug(java.lang.String message)
Logs a debug message. |
protected static void |
error(java.lang.String message)
Logs an error message. |
protected static void |
except(java.lang.String message,
java.lang.Exception e)
Logs a Java exception and an accompanying error message. |
protected static void |
info(java.lang.String message)
Logs an info message. |
protected static void |
warn(java.lang.String message)
Logs a warning message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Log()
| Method Detail |
protected static void warn(java.lang.String message)
warning message.
message - Message String to be logged.protected static void debug(java.lang.String message)
debug message.
message - Message String to be logged.protected static void info(java.lang.String message)
info message.
message - Message String to be logged.
protected static void except(java.lang.String message,
java.lang.Exception e)
message - Message String to be logged.e - Exception to be logged.protected static void error(java.lang.String message)
error message.
message - Message String to be logged.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||