|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectnet.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 name| Method Detail |
public boolean isTraceEnabled()
isTraceEnabled in interface Loggerpublic boolean isDebugEnabled()
isDebugEnabled in interface Loggerpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggerpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggerpublic boolean isErrorEnabled()
isErrorEnabled in interface Loggerpublic void trace(String message)
trace in interface Loggermessage - the message to logpublic void debug(String message)
debug in interface Loggermessage - the message to logpublic void info(String message)
info in interface Loggermessage - the message to logpublic void warn(String message)
warn in interface Loggermessage - the warning message to record
public void warn(String message,
Throwable cause)
warn in interface Loggermessage - the warning message to recordcause - the causal exceptionpublic void error(String message)
error in interface Loggermessage - the message to log
public void error(String message,
Throwable e)
error in interface Loggermessage - the message to loge - the causal exceptionpublic Logger getChildLogger(String category)
getChildLogger in interface Loggercategory - the sub-category name.
public void notify(URL resource,
int total,
int count)
notify in interface Adapterresource - 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 | ||||||||||