|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.lwes.util.Log
public class Log
This is a wrapper class for logging. Instead of embedding log4j or JDK logging statements in the code, we have a wrapper around JDK logging so this could be changed easily in the future. Also, since we prefer the distribution to be simple and standalone, we aren't using Commons Logging so that we don't have to bundle that in the distribution. JDK logging could easily be redirected to the destination of the library user's choice.
| Constructor Summary | |
|---|---|
Log()
|
|
| Method Summary | |
|---|---|
static void |
debug(java.lang.String message)
Log a debug level message |
static void |
error(java.lang.String message)
Log an error level message |
static void |
error(java.lang.String message,
java.lang.Throwable t)
Log an error level message, with associated Throwable information |
static void |
info(java.lang.String message)
Log a info level message |
static void |
trace(java.lang.String message)
Log a trace level message |
static void |
warning(java.lang.String message)
Log a warning level message |
static void |
warning(java.lang.String message,
java.lang.Throwable t)
Log an warning level message, with associated Throwable information |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Log()
| Method Detail |
|---|
public static void trace(java.lang.String message)
message - the message to be loggedpublic static void debug(java.lang.String message)
message - the message to be loggedpublic static void info(java.lang.String message)
message - the message to be loggedpublic static void warning(java.lang.String message)
message - the message to be logged
public static void warning(java.lang.String message,
java.lang.Throwable t)
message - the message to be loggedt - the Throwable associated with the log messagepublic static void error(java.lang.String message)
message - the message to be logged
public static void error(java.lang.String message,
java.lang.Throwable t)
message - the message to be loggedt - the Throwable associated with the log message
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||