|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Logger
The main user interface to logging.
This interface provides classic method use to log
string or status at various level.
These level are described in the LogLevel Enum;
LogLevel| Method Summary | |
|---|---|
void |
addLoggerEventListener(LoggerEventListener listener)
Add listener on logger events. |
void |
debug(Object source,
String msg)
Log a message at the DEBUG level. |
void |
debug(Object source,
String msg,
Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message. |
void |
error(Object source,
String msg)
Log a message at the ERROR level. |
void |
error(Object source,
String msg,
Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message. |
LogLevel |
getLogLevel()
Replies the minimum log level. |
String |
getName()
Return the name of this Logger instance. |
void |
info(Object source,
String msg)
Log a message at the INFO level. |
void |
info(Object source,
String msg,
Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message. |
boolean |
isDebugEnabled()
Is the logger instance enabled for the DEBUG level? |
boolean |
isErrorEnabled()
Is the logger instance enabled for the ERROR level? |
boolean |
isInfoEnabled()
Is the logger instance enabled for the INFO level? |
boolean |
isWarnEnabled()
Is the logger instance enabled for the WARN level? |
void |
log(Object source,
LogLevel level,
String msg)
Log the specified message at the specified level |
void |
log(Object source,
LogLevel level,
String msg,
Throwable exception)
Log the specified message at the specified level |
void |
removeLoggerEventListener(LoggerEventListener listener)
Remove listener on logger events. |
void |
setLogLevel(LogLevel level)
Set the minimum log level. |
void |
warn(Object source,
String msg)
Log a message at the WARN level. |
void |
warn(Object source,
String msg,
Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message. |
| Method Detail |
|---|
String getName()
Logger instance.
Logger instance.boolean isDebugEnabled()
true if this Logger is enabled for the DEBUG level,
false otherwise.
void log(Object source,
LogLevel level,
String msg)
source - - the object which send this loglevel - - the log levelmsg - - the message to log
void log(Object source,
LogLevel level,
String msg,
Throwable exception)
source - - the object which send this loglevel - - the log levelmsg - - the message to logexception - - the exception cause of the log message
void debug(Object source,
String msg)
source - - the object which send this logmsg - the message string to be logged
void debug(Object source,
String msg,
Throwable t)
source - - the object which send this logmsg - the message accompanying the exceptiont - the exception (throwable) to logboolean isInfoEnabled()
true if this Logger is enabled for the INFO level,
false otherwise.
void info(Object source,
String msg)
source - - the object which send this logmsg - the message string to be logged
void info(Object source,
String msg,
Throwable t)
source - - the object which send this logmsg - the message accompanying the exceptiont - the exception (throwable) to logboolean isWarnEnabled()
true if this Logger is enabled for the WARN level,
false otherwise.
void warn(Object source,
String msg)
source - - the object which send this logmsg - the message string to be logged
void warn(Object source,
String msg,
Throwable t)
source - - the object which send this logmsg - the message accompanying the exceptiont - the exception (throwable) to logboolean isErrorEnabled()
true if this Logger is enabled for the ERROR level,
false otherwise.
void error(Object source,
String msg)
source - - the object which send this logmsg - the message string to be logged
void error(Object source,
String msg,
Throwable t)
source - - the object which send this logmsg - the message accompanying the exceptiont - the exception (throwable) to logvoid setLogLevel(LogLevel level)
level - LogLevel getLogLevel()
void addLoggerEventListener(LoggerEventListener listener)
listener - void removeLoggerEventListener(LoggerEventListener listener)
listener -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||