Log4J2Logger
or Log4JLogger
or
Slf4JLogger
.@Deprecated class CommonsLogger extends AbstractInternalLogger
Modifier and Type | Field and Description |
---|---|
private org.apache.commons.logging.Log |
logger
Deprecated.
|
private static long |
serialVersionUID
Deprecated.
|
Constructor and Description |
---|
CommonsLogger(org.apache.commons.logging.Log logger,
java.lang.String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.String msg)
Deprecated.
Delegates to the
Log.debug(Object) method of the underlying
Log instance. |
void |
debug(java.lang.String format,
java.lang.Object... arguments)
Deprecated.
Delegates to the
Log.debug(Object) method of the underlying
Log instance. |
void |
debug(java.lang.String format,
java.lang.Object arg)
Deprecated.
Delegates to the
Log.debug(Object) method of the underlying
Log instance. |
void |
debug(java.lang.String format,
java.lang.Object argA,
java.lang.Object argB)
Deprecated.
Delegates to the
Log.debug(Object) method of the underlying
Log instance. |
void |
debug(java.lang.String msg,
java.lang.Throwable t)
Deprecated.
Delegates to the
Log.debug(Object, Throwable) method of
the underlying Log instance. |
void |
error(java.lang.String msg)
Deprecated.
Delegates to the
Log.error(Object) method of the underlying
Log instance. |
void |
error(java.lang.String format,
java.lang.Object... arguments)
Deprecated.
Delegates to the
Log.error(Object) method of the underlying
Log instance. |
void |
error(java.lang.String format,
java.lang.Object arg)
Deprecated.
Delegates to the
Log.error(Object) method of the underlying
Log instance. |
void |
error(java.lang.String format,
java.lang.Object argA,
java.lang.Object argB)
Deprecated.
Delegates to the
Log.error(Object) method of the underlying
Log instance. |
void |
error(java.lang.String msg,
java.lang.Throwable t)
Deprecated.
Delegates to the
Log.error(Object, Throwable) method of
the underlying Log instance. |
void |
info(java.lang.String msg)
Deprecated.
Delegates to the
Log.debug(Object) method of the underlying
Log instance. |
void |
info(java.lang.String format,
java.lang.Object... arguments)
Deprecated.
Delegates to the
Log.info(Object) method of the underlying
Log instance. |
void |
info(java.lang.String format,
java.lang.Object arg)
Deprecated.
Delegates to the
Log.info(Object) method of the underlying
Log instance. |
void |
info(java.lang.String format,
java.lang.Object argA,
java.lang.Object argB)
Deprecated.
Delegates to the
Log.info(Object) method of the underlying
Log instance. |
void |
info(java.lang.String msg,
java.lang.Throwable t)
Deprecated.
Delegates to the
Log.info(Object, Throwable) method of
the underlying Log instance. |
boolean |
isDebugEnabled()
Deprecated.
Delegates to the
Log.isDebugEnabled() method of the underlying
Log instance. |
boolean |
isErrorEnabled()
Deprecated.
Delegates to the
Log.isErrorEnabled() method of the underlying
Log instance. |
boolean |
isInfoEnabled()
Deprecated.
Delegates to the
Log.isInfoEnabled() method of the underlying
Log instance. |
boolean |
isTraceEnabled()
Deprecated.
Delegates to the
Log.isTraceEnabled() method of the underlying
Log instance. |
boolean |
isWarnEnabled()
Deprecated.
Delegates to the
Log.isWarnEnabled() method of the underlying
Log instance. |
void |
trace(java.lang.String msg)
Deprecated.
Delegates to the
Log.trace(Object) method of the underlying
Log instance. |
void |
trace(java.lang.String format,
java.lang.Object... arguments)
Deprecated.
Delegates to the
Log.trace(Object) method of the underlying
Log instance. |
void |
trace(java.lang.String format,
java.lang.Object arg)
Deprecated.
Delegates to the
Log.trace(Object) method of the underlying
Log instance. |
void |
trace(java.lang.String format,
java.lang.Object argA,
java.lang.Object argB)
Deprecated.
Delegates to the
Log.trace(Object) method of the underlying
Log instance. |
void |
trace(java.lang.String msg,
java.lang.Throwable t)
Deprecated.
Delegates to the
Log.trace(Object, Throwable) method of
the underlying Log instance. |
void |
warn(java.lang.String msg)
Deprecated.
Delegates to the
Log.warn(Object) method of the underlying
Log instance. |
void |
warn(java.lang.String format,
java.lang.Object... arguments)
Deprecated.
Delegates to the
Log.warn(Object) method of the underlying
Log instance. |
void |
warn(java.lang.String format,
java.lang.Object arg)
Deprecated.
Delegates to the
Log.warn(Object) method of the underlying
Log instance. |
void |
warn(java.lang.String format,
java.lang.Object argA,
java.lang.Object argB)
Deprecated.
Delegates to the
Log.warn(Object) method of the underlying
Log instance. |
void |
warn(java.lang.String msg,
java.lang.Throwable t)
Deprecated.
Delegates to the
Log.warn(Object, Throwable) method of
the underlying Log instance. |
isEnabled, log, log, log, log, log, name, readResolve, toString
private static final long serialVersionUID
private final transient org.apache.commons.logging.Log logger
CommonsLogger(org.apache.commons.logging.Log logger, java.lang.String name)
public boolean isTraceEnabled()
Log.isTraceEnabled()
method of the underlying
Log
instance.public void trace(java.lang.String msg)
Log.trace(Object)
method of the underlying
Log
instance.msg
- - the message object to be loggedpublic void trace(java.lang.String format, java.lang.Object arg)
Log.trace(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(java.lang.String format, java.lang.Object argA, java.lang.Object argB)
Log.trace(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 stringargA
- the first argumentargB
- the second argumentpublic void trace(java.lang.String format, java.lang.Object... arguments)
Log.trace(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 stringarguments
- a list of 3 or more argumentspublic void trace(java.lang.String msg, java.lang.Throwable t)
Log.trace(Object, 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(java.lang.String msg)
Log.debug(Object)
method of the underlying
Log
instance.msg
- - the message object to be loggedpublic void debug(java.lang.String format, java.lang.Object arg)
Log.debug(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(java.lang.String format, java.lang.Object argA, java.lang.Object argB)
Log.debug(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 stringargA
- the first argumentargB
- the second argumentpublic void debug(java.lang.String format, java.lang.Object... arguments)
Log.debug(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 stringarguments
- a list of 3 or more argumentspublic void debug(java.lang.String msg, java.lang.Throwable t)
Log.debug(Object, 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(java.lang.String msg)
Log.debug(Object)
method of the underlying
Log
instance.msg
- - the message object to be loggedpublic void info(java.lang.String format, java.lang.Object arg)
Log.info(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(java.lang.String format, java.lang.Object argA, java.lang.Object argB)
Log.info(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 stringargA
- the first argumentargB
- the second argumentpublic void info(java.lang.String format, java.lang.Object... arguments)
Log.info(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 stringarguments
- a list of 3 or more argumentspublic void info(java.lang.String msg, java.lang.Throwable t)
Log.info(Object, 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(java.lang.String msg)
Log.warn(Object)
method of the underlying
Log
instance.msg
- - the message object to be loggedpublic void warn(java.lang.String format, java.lang.Object arg)
Log.warn(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(java.lang.String format, java.lang.Object argA, java.lang.Object argB)
Log.warn(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 stringargA
- the first argumentargB
- the second argumentpublic void warn(java.lang.String format, java.lang.Object... arguments)
Log.warn(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 stringarguments
- a list of 3 or more argumentspublic void warn(java.lang.String msg, java.lang.Throwable t)
Log.warn(Object, 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(java.lang.String msg)
Log.error(Object)
method of the underlying
Log
instance.msg
- - the message object to be loggedpublic void error(java.lang.String format, java.lang.Object arg)
Log.error(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(java.lang.String format, java.lang.Object argA, java.lang.Object argB)
Log.error(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 stringargA
- the first argumentargB
- the second argumentpublic void error(java.lang.String format, java.lang.Object... arguments)
Log.error(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 stringarguments
- a list of 3 or more argumentspublic void error(java.lang.String msg, java.lang.Throwable t)
Log.error(Object, Throwable)
method of
the underlying Log
instance.msg
- the message accompanying the exceptiont
- the exception (throwable) to log