public class SLF4JLog extends Object implements Log, Serializable
org.apache.commons.logging.Log interface which
delegates all processing to a wrapped org.slf4j.Logger
instance.
JCL's FATAL level is mapped to ERROR. All other levels map one to one.
| Modifier and Type | Method and Description |
|---|---|
void |
debug(Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
debug(Object message,
Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
void |
error(Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
error(Object message,
Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
void |
fatal(Object message)
Converts the input parameter to String and then delegates to the error
method of the wrapped
org.slf4j.Logger instance. |
void |
fatal(Object message,
Throwable t)
Converts the first input parameter to String and then delegates to the
error method of the wrapped
org.slf4j.Logger instance. |
void |
info(Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
info(Object message,
Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
boolean |
isDebugEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
boolean |
isErrorEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
boolean |
isFatalEnabled()
Delegates to the
isErrorEnabled |
boolean |
isInfoEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
boolean |
isTraceEnabled()
Delegates to the
isDebugEnabled |
boolean |
isWarnEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
protected Object |
readResolve()
Replace this instance with a homonymous (same name) logger returned by
LoggerFactory.
|
void |
trace(Object message)
Converts the input parameter to String and then delegates to the debug
method of the wrapped
org.slf4j.Logger instance. |
void |
trace(Object message,
Throwable t)
Converts the first input parameter to String and then delegates to the
debug method of the wrapped
org.slf4j.Logger instance. |
void |
warn(Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
warn(Object message,
Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
protected String name
public boolean isDebugEnabled()
org.slf4j.Logger instance.isDebugEnabled in interface Logpublic boolean isErrorEnabled()
org.slf4j.Logger instance.isErrorEnabled in interface Logpublic boolean isFatalEnabled()
isErrorEnabled method of the wrapped
org.slf4j.Logger instance.isFatalEnabled in interface Logpublic boolean isInfoEnabled()
org.slf4j.Logger instance.isInfoEnabled in interface Logpublic boolean isTraceEnabled()
isDebugEnabled method of the wrapped
org.slf4j.Logger instance.isTraceEnabled in interface Logpublic boolean isWarnEnabled()
org.slf4j.Logger instance.isWarnEnabled in interface Logpublic void trace(Object message)
org.slf4j.Logger instance.public void trace(Object message, Throwable t)
org.slf4j.Logger instance.public void debug(Object message)
org.slf4j.Logger instance.public void debug(Object message, Throwable t)
org.slf4j.Logger instance.public void info(Object message)
org.slf4j.Logger instance.public void info(Object message, Throwable t)
org.slf4j.Logger instance.public void warn(Object message)
org.slf4j.Logger instance.public void warn(Object message, Throwable t)
org.slf4j.Logger instance.public void error(Object message)
org.slf4j.Logger instance.public void error(Object message, Throwable t)
org.slf4j.Logger instance.public void fatal(Object message)
org.slf4j.Logger instance.public void fatal(Object message, Throwable t)
org.slf4j.Logger instance.protected Object readResolve() throws ObjectStreamException
ObjectStreamExceptionCopyright © 2005–2017 QOS.ch. All rights reserved.