|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
LoggerAdapter is an Adapter used by the Debug Singleton to log debug information. This interface is based on the features of Log4J, so it is easily used with that system. You can implement this interface for almost any logging system.
Method Summary | |
void |
debug(java.lang.Object message)
Writes the given DEBUG message to the log if the DEBUG logging level is enabled |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Writes the given DEBUG message and stack trace to the log if the DEBUG logging level is enabled |
void |
error(java.lang.Object message)
Writes the given ERROR message to the log if the ERROR logging level is enabled |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Writes the given ERROR message and stack trace to the log if the ERROR logging level is enabled |
void |
fatal(java.lang.Object message)
Writes the given FATAL message to the log if the FATAL logging level is enabled |
void |
fatal(java.lang.Object message,
java.lang.Throwable t)
Writes the given FATAL message and stack trace to the log if the FATAL logging level is enabled |
void |
info(java.lang.Object message)
Writes the given INFO message to the log if the INFO logging level is enabled |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Writes the given INFO message and stack trace to the log if the INFO logging level is enabled |
boolean |
isDebugEnabled()
Indicates whether or not the DEBUG level is enabled for logging. |
boolean |
isEnabledFor(int level)
Indicates whether or not the given level is enabled for logging. |
boolean |
isInfoEnabled()
Indicates whether or not the INFO level is enabled for logging. |
void |
log(int level,
java.lang.Object message)
Writes the given level message to the log if the given logging level is enabled |
void |
log(int level,
java.lang.Object message,
java.lang.Throwable t)
Writes the given level message and stack trace to the log if the given logging level is enabled |
void |
warn(java.lang.Object message)
Writes the given WARN message to the log if the WARN logging level is enabled |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Writes the given WARN message and stack trace to the log if the WARN logging level is enabled |
Method Detail |
public void debug(java.lang.Object message)
message
- is an object which contains the message to logpublic void debug(java.lang.Object message, java.lang.Throwable t)
message
- is an object which contains the message to logt
- throwable to be rendered using printStackTracepublic void info(java.lang.Object message)
message
- is an object which contains the message to logpublic void info(java.lang.Object message, java.lang.Throwable t)
message
- is an object which contains the message to logt
- throwable to be rendered using printStackTracepublic void warn(java.lang.Object message)
message
- is an object which contains the message to logpublic void warn(java.lang.Object message, java.lang.Throwable t)
message
- is an object which contains the message to logt
- throwable to be rendered using printStackTracepublic void error(java.lang.Object message)
message
- is an object which contains the message to logpublic void error(java.lang.Object message, java.lang.Throwable t)
message
- is an object which contains the message to logt
- throwable to be rendered using printStackTracepublic void fatal(java.lang.Object message)
message
- is an object which contains the message to logpublic void fatal(java.lang.Object message, java.lang.Throwable t)
message
- is an object which contains the message to logt
- throwable to be rendered using printStackTracepublic boolean isDebugEnabled()
public boolean isInfoEnabled()
public boolean isEnabledFor(int level)
level
- to check if enabled
public void log(int level, java.lang.Object message)
level
- of log messagemessage
- is an object which contains the message to logpublic void log(int level, java.lang.Object message, java.lang.Throwable t)
level
- of log messagemessage
- is an object which contains the message to logt
- throwable to be rendered using printStackTrace
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |