|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.dpml.transit.monitor.LoggingAdapter
Generic adapter that redirects monitor events to a logging channel.
Constructor Summary | |
LoggingAdapter()
Creation of a new console adapter that is used to redirect transit events the system output stream. |
|
LoggingAdapter(Logger logger)
Creation of a new console adapter that is used to redirect transit events the system output stream. |
|
LoggingAdapter(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 |
notify(URL resource,
int total,
int count)
Handle download notification. |
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 LoggingAdapter()
public LoggingAdapter(Logger logger)
logger
- the assigned logging channelpublic LoggingAdapter(String category)
category
- the logging channel category nameMethod 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.
public void notify(URL resource, int total, int count)
notify
in interface Adapter
resource
- the resource under attentiontotal
- the estimated download sizecount
- the progress towards expected
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |