|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.slf4j.helpers.MarkerIgnoringBase
org.slf4j.impl.JCLLoggerAdapter
public final class JCLLoggerAdapter
A wrapper over org.apache.commons.logging.Log
in conformance with the Logger
interface.
Field Summary | |
---|---|
protected String |
name
|
Fields inherited from interface org.slf4j.Logger |
---|
ROOT_LOGGER_NAME |
Method Summary | |
---|---|
void |
debug(String msg)
Delegates to the Log.debug(java.lang.Object) method of the underlying
Log instance. |
void |
debug(String format,
Object arg)
Delegates to the Log.debug(java.lang.Object) method of the underlying
Log instance. |
void |
debug(String format,
Object[] argArray)
Delegates to the Log.debug(java.lang.Object) method of the underlying
Log instance. |
void |
debug(String format,
Object arg1,
Object arg2)
Delegates to the Log.debug(java.lang.Object) method of the underlying
Log instance. |
void |
debug(String msg,
Throwable t)
Delegates to the Log.debug(java.lang.Object, java.lang.Throwable) method of
the underlying Log instance. |
void |
error(String msg)
Delegates to the Log.error(java.lang.Object) method of the underlying
Log instance. |
void |
error(String format,
Object arg)
Delegates to the Log.error(java.lang.Object) method of the underlying
Log instance. |
void |
error(String format,
Object[] argArray)
Delegates to the Log.error(java.lang.Object) method of the underlying
Log instance. |
void |
error(String format,
Object arg1,
Object arg2)
Delegates to the Log.error(java.lang.Object) method of the underlying
Log instance. |
void |
error(String msg,
Throwable t)
Delegates to the Log.error(java.lang.Object, java.lang.Throwable) method of
the underlying Log instance. |
String |
getName()
Return the name of this Logger instance. |
void |
info(String msg)
Delegates to the Log.debug(java.lang.Object) method of the underlying
Log instance. |
void |
info(String format,
Object arg)
Delegates to the Log.info(java.lang.Object) method of the underlying
Log instance. |
void |
info(String format,
Object[] argArray)
Delegates to the Log.info(java.lang.Object) method of the underlying
Log instance. |
void |
info(String format,
Object arg1,
Object arg2)
Delegates to the Log.info(java.lang.Object) method of the underlying
Log instance. |
void |
info(String msg,
Throwable t)
Delegates to the Log.info(java.lang.Object, java.lang.Throwable) method of
the underlying Log instance. |
boolean |
isDebugEnabled()
Delegates to the Log.isDebugEnabled() method of the underlying
Log instance. |
boolean |
isErrorEnabled()
Delegates to the Log.isErrorEnabled() method of the underlying
Log instance. |
boolean |
isInfoEnabled()
Delegates to the Log.isInfoEnabled() method of the underlying
Log instance. |
boolean |
isTraceEnabled()
Delegates to the Log.isTraceEnabled() method of the underlying
Log instance. |
boolean |
isWarnEnabled()
Delegates to the Log.isWarnEnabled() method of the underlying
Log instance. |
protected Object |
readResolve()
Replace this instance with a homonymous (same name) logger returned by LoggerFactory. |
void |
trace(String msg)
Delegates to the Log.trace(java.lang.Object) method of the underlying
Log instance. |
void |
trace(String format,
Object arg)
Delegates to the Log.trace(java.lang.Object) method of the underlying
Log instance. |
void |
trace(String format,
Object[] argArray)
Delegates to the Log.trace(java.lang.Object) method of the underlying
Log instance. |
void |
trace(String format,
Object arg1,
Object arg2)
Delegates to the Log.trace(java.lang.Object) method of the underlying
Log instance. |
void |
trace(String msg,
Throwable t)
Delegates to the Log.trace(java.lang.Object, java.lang.Throwable) method of
the underlying Log instance. |
void |
warn(String msg)
Delegates to the Log.warn(java.lang.Object) method of the underlying
Log instance. |
void |
warn(String format,
Object arg)
Delegates to the Log.warn(java.lang.Object) method of the underlying
Log instance. |
void |
warn(String format,
Object[] argArray)
Delegates to the Log.warn(java.lang.Object) method of the underlying
Log instance. |
void |
warn(String format,
Object arg1,
Object arg2)
Delegates to the Log.warn(java.lang.Object) method of the underlying
Log instance. |
void |
warn(String msg,
Throwable t)
Delegates to the Log.warn(java.lang.Object, java.lang.Throwable) method of
the underlying Log instance. |
Methods inherited from class org.slf4j.helpers.MarkerIgnoringBase |
---|
debug, debug, debug, debug, debug, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, toString, trace, trace, trace, trace, trace, warn, warn, warn, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.slf4j.Logger |
---|
getName |
Field Detail |
---|
protected String name
Method Detail |
---|
public boolean isTraceEnabled()
Log.isTraceEnabled()
method of the underlying
Log
instance.
public void trace(String msg)
Log.trace(java.lang.Object)
method of the underlying
Log
instance.
msg
- - the message object to be loggedpublic void trace(String format, Object arg)
Log.trace(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level TRACE.
format
- the format stringarg
- the argumentpublic void trace(String format, Object arg1, Object arg2)
Log.trace(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level TRACE.
format
- the format stringarg1
- the first argumentarg2
- the second argumentpublic void trace(String format, Object[] argArray)
Log.trace(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level TRACE.
format
- the format stringargArray
- an array of argumentspublic void trace(String msg, Throwable t)
Log.trace(java.lang.Object, java.lang.Throwable)
method of
the underlying Log
instance.
msg
- the message accompanying the exceptiont
- the exception (throwable) to logpublic boolean isDebugEnabled()
Log.isDebugEnabled()
method of the underlying
Log
instance.
public void debug(String msg)
Log.debug(java.lang.Object)
method of the underlying
Log
instance.
msg
- - the message object to be loggedpublic void debug(String format, Object arg)
Log.debug(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level DEBUG.
format
- the format stringarg
- the argumentpublic void debug(String format, Object arg1, Object arg2)
Log.debug(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level DEBUG.
format
- the format stringarg1
- the first argumentarg2
- the second argumentpublic void debug(String format, Object[] argArray)
Log.debug(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level DEBUG.
format
- the format stringargArray
- an array of argumentspublic void debug(String msg, Throwable t)
Log.debug(java.lang.Object, java.lang.Throwable)
method of
the underlying Log
instance.
msg
- the message accompanying the exceptiont
- the exception (throwable) to logpublic boolean isInfoEnabled()
Log.isInfoEnabled()
method of the underlying
Log
instance.
public void info(String msg)
Log.debug(java.lang.Object)
method of the underlying
Log
instance.
msg
- - the message object to be loggedpublic void info(String format, Object arg)
Log.info(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level INFO.
format
- the format stringarg
- the argumentpublic void info(String format, Object arg1, Object arg2)
Log.info(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level INFO.
format
- the format stringarg1
- the first argumentarg2
- the second argumentpublic void info(String format, Object[] argArray)
Log.info(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level INFO.
format
- the format stringargArray
- an array of argumentspublic void info(String msg, Throwable t)
Log.info(java.lang.Object, java.lang.Throwable)
method of
the underlying Log
instance.
msg
- the message accompanying the exceptiont
- the exception (throwable) to logpublic boolean isWarnEnabled()
Log.isWarnEnabled()
method of the underlying
Log
instance.
public void warn(String msg)
Log.warn(java.lang.Object)
method of the underlying
Log
instance.
msg
- - the message object to be loggedpublic void warn(String format, Object arg)
Log.warn(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level WARN.
format
- the format stringarg
- the argumentpublic void warn(String format, Object arg1, Object arg2)
Log.warn(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level WARN.
format
- the format stringarg1
- the first argumentarg2
- the second argumentpublic void warn(String format, Object[] argArray)
Log.warn(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level WARN.
format
- the format stringargArray
- an array of argumentspublic void warn(String msg, Throwable t)
Log.warn(java.lang.Object, java.lang.Throwable)
method of
the underlying Log
instance.
msg
- the message accompanying the exceptiont
- the exception (throwable) to logpublic boolean isErrorEnabled()
Log.isErrorEnabled()
method of the underlying
Log
instance.
public void error(String msg)
Log.error(java.lang.Object)
method of the underlying
Log
instance.
msg
- - the message object to be loggedpublic void error(String format, Object arg)
Log.error(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level ERROR.
format
- the format stringarg
- the argumentpublic void error(String format, Object arg1, Object arg2)
Log.error(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level ERROR.
format
- the format stringarg1
- the first argumentarg2
- the second argumentpublic void error(String format, Object[] argArray)
Log.error(java.lang.Object)
method of the underlying
Log
instance.
However, this form avoids superfluous object creation when the logger is disabled for level ERROR.
format
- the format stringargArray
- an array of argumentspublic void error(String msg, Throwable t)
Log.error(java.lang.Object, java.lang.Throwable)
method of
the underlying Log
instance.
msg
- the message accompanying the exceptiont
- the exception (throwable) to logpublic String getName()
Logger
Logger
instance.
getName
in interface Logger
protected Object readResolve() throws ObjectStreamException
This approach will work well if the desired ILoggerFactory is the one references by LoggerFactory. However, if the user manages its logger hierarchy through a different (non-static) mechanism, e.g. dependency injection, then this approach would be mostly counterproductive.
ObjectStreamException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |