|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Logger
Simple project logger interface Use a logger impl to plug to any logger.
Method Summary | |
---|---|
void |
debug(java.lang.String msg)
Log a message at the DEBUG level. |
void |
debug(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the DEBUG level with an accompanying message. |
void |
error(java.lang.String msg)
Log a message at the ERROR level. |
void |
error(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the ERROR level with an accompanying message. |
boolean |
getDebugEnabled()
Is the logger instance enabled for the DEBUG level? |
boolean |
getErrorEnabled()
Is the logger instance enabled for the ERROR level? |
boolean |
getInfoEnabled()
Is the logger instance enabled for the INFO level? |
java.lang.String |
getLoggerName()
|
boolean |
getTraceEnabled()
|
boolean |
getWarnEnabled()
Is the logger instance enabled for the WARN level? |
void |
info(java.lang.String msg)
Log a message at the INFO level. |
void |
info(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the INFO level with an accompanying message. |
void |
setDebugEnabled(boolean debugEnabled)
|
void |
setErrorEnabled(boolean errorEnabled)
Is the logger instance enabled for the ERROR level? |
void |
setInfoEnabled(boolean infoEnabled)
Is the logger instance enabled for the INFO level? |
void |
setLoggerName(java.lang.String loggerName)
|
void |
setTraceEnabled(boolean traceEnabled)
|
void |
setWarnEnabled(boolean warnEnabled)
Is the logger instance enabled for the WARN level? |
void |
trace(java.lang.String msg)
Log a message at the TRACE level. |
void |
trace(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the TRACE level with an accompanying message. |
void |
warn(java.lang.String msg)
Log a message at the WARN level. |
void |
warn(java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the WARN level with an accompanying message. |
Method Detail |
---|
void setLoggerName(java.lang.String loggerName)
void setTraceEnabled(boolean traceEnabled)
void trace(java.lang.String msg)
void trace(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logboolean getDebugEnabled()
void debug(java.lang.String msg)
msg
- the message string to be loggedvoid debug(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid setInfoEnabled(boolean infoEnabled)
void setDebugEnabled(boolean debugEnabled)
void info(java.lang.String msg)
msg
- the message string to be loggedvoid info(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid setWarnEnabled(boolean warnEnabled)
void warn(java.lang.String msg)
msg
- the message string to be loggedvoid warn(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logvoid setErrorEnabled(boolean errorEnabled)
void error(java.lang.String msg)
msg
- the message string to be loggedvoid error(java.lang.String msg, java.lang.Throwable t)
msg
- the message accompanying the exceptiont
- the exception (throwable) to logboolean getErrorEnabled()
boolean getInfoEnabled()
java.lang.String getLoggerName()
boolean getTraceEnabled()
boolean getWarnEnabled()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |