|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.itmill.toolkit.terminal.web.Log
public class 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(String message)
Logs the debug message. |
protected static void |
error(String message)
Logs the error message. |
protected static void |
except(String message,
Exception e)
Logs the Java exception and an accompanying error message. |
protected static void |
info(String message)
Logs an info message. |
protected static void |
warn(String message)
Logs the 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(String message)
warning message.
message - the Message String to be logged.protected static void debug(String message)
debug message.
message - the Message String to be logged.protected static void info(String message)
info message.
message - the Message String to be logged.
protected static void except(String message,
Exception e)
message - the Message String to be logged.e - the Exception to be logged.protected static void error(String message)
error message.
message - the Message String to be logged.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||