|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.beanfabrics.log.Slf4jLogger
public class Slf4jLogger
A Logger that delegates all logging to Simple Logging Facade for Java.
To use the SLF4J remember to import the required libraries to bind with the intended logging framework at deployment time.
| Constructor Summary | |
|---|---|
Slf4jLogger(java.lang.Class clazz)
Constructs a Log4JLogger for a given Class. |
|
| Method Summary | |
|---|---|
void |
debug(java.lang.String msg)
Logs a message at the DEBUG level. |
void |
error(java.lang.String msg)
Logs a message at the ERROR level. |
void |
error(java.lang.String msg,
java.lang.Throwable t)
Logs an Throwable at the ERROR level |
void |
info(java.lang.String msg)
Logs a message at the INFO level. |
boolean |
isDebugEnabled()
Returns if the DEBUG level is enabled for this instance. |
boolean |
isErrorEnabled()
Returns if the ERROR level is enabled for this instance. |
boolean |
isInfoEnabled()
Returns if the INFO level is enabled for this instance. |
boolean |
isTraceEnabled()
Returns if the TRACE level is enabled for this instance. |
boolean |
isWarnEnabled()
Returns if the WARN level is enabled for this instance. |
void |
trace(java.lang.String msg)
Logs a message at the TRACE level. |
void |
warn(java.lang.String msg)
Logs a message at the WARN level. |
void |
warn(java.lang.String msg,
java.lang.Throwable t)
Logs an Throwable at the WARN level |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Slf4jLogger(java.lang.Class clazz)
Log4JLogger for a given Class.
clazz - the Class to log for| Method Detail |
|---|
public boolean isTraceEnabled()
isTraceEnabled in interface Loggertrue if the TRACE level is enabled, else
falsepublic void trace(java.lang.String msg)
trace in interface Loggermsg - message to logpublic boolean isDebugEnabled()
isDebugEnabled in interface Loggertrue if the DEBUG level is enabled, else
falsepublic void debug(java.lang.String msg)
debug in interface Loggermsg - message to logpublic boolean isInfoEnabled()
isInfoEnabled in interface Loggertrue if the INFO level is enabled, else
falsepublic void info(java.lang.String msg)
info in interface Loggermsg - message to logpublic boolean isWarnEnabled()
isWarnEnabled in interface Loggertrue if the WARN level is enabled, else
falsepublic void warn(java.lang.String msg)
warn in interface Loggermsg - message to log
public void warn(java.lang.String msg,
java.lang.Throwable t)
Throwable at the WARN level
warn in interface Loggermsg - the message to logt - the Throwable to logpublic boolean isErrorEnabled()
isErrorEnabled in interface Loggertrue if the ERROR level is enabled, else
falsepublic void error(java.lang.String msg)
error in interface Loggermsg - message to log
public void error(java.lang.String msg,
java.lang.Throwable t)
Throwable at the ERROR level
error in interface Loggermsg - the message to logt - the Throwable to log
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||