|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.util.DefaultLogger
public final class DefaultLogger
Generic logging channel.
Constructor Summary | |
---|---|
DefaultLogger()
Creation of a new console adapter that is used to redirect transit events the system output stream. |
|
DefaultLogger(Logger logger)
Creation of a new console adapter that is used to redirect transit events the system output stream. |
|
DefaultLogger(String category)
Creation of a new console adapter that is used to redirect transit events the system output stream. |
Method Summary | |
---|---|
void |
debug(String message)
Log a debug message is debug mode is enabled. |
void |
error(String message)
Log a error message. |
void |
error(String message,
Throwable e)
Log a error message. |
Logger |
getChildLogger(String category)
Return a child logger. |
void |
info(String message)
Log a info level message. |
boolean |
isDebugEnabled()
Return TRUE is debug level logging is enabled. |
boolean |
isErrorEnabled()
Return TRUE is error level logging is enabled. |
boolean |
isInfoEnabled()
Return TRUE is info level logging is enabled. |
boolean |
isTraceEnabled()
Return TRUE is trace level logging is enabled. |
boolean |
isWarnEnabled()
Return TRUE is error level logging is enabled. |
void |
trace(String message)
Log a debug message is trace mode is enabled. |
void |
warn(String message)
Record a warning message. |
void |
warn(String message,
Throwable cause)
Record a warning message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultLogger()
public DefaultLogger(String category)
category
- the logging channel category namepublic DefaultLogger(Logger logger)
logger
- the assigned logging channelMethod Detail |
---|
public boolean isTraceEnabled()
isTraceEnabled
in interface Logger
public boolean isDebugEnabled()
isDebugEnabled
in interface Logger
public boolean isInfoEnabled()
isInfoEnabled
in interface Logger
public boolean isWarnEnabled()
isWarnEnabled
in interface Logger
public boolean isErrorEnabled()
isErrorEnabled
in interface Logger
public void trace(String message)
trace
in interface Logger
message
- the message to logpublic void debug(String message)
debug
in interface Logger
message
- the message to logpublic void info(String message)
info
in interface Logger
message
- the message to logpublic void warn(String message)
warn
in interface Logger
message
- the warning message to recordpublic void warn(String message, Throwable cause)
warn
in interface Logger
message
- the warning message to recordcause
- the causal exceptionpublic void error(String message)
error
in interface Logger
message
- the message to logpublic void error(String message, Throwable e)
error
in interface Logger
message
- the message to loge
- the causal exceptionpublic Logger getChildLogger(String category)
getChildLogger
in interface Logger
category
- the sub-category name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |