Package org.apache.commons.logging.impl
Class SLF4JLog
- java.lang.Object
-
- org.apache.commons.logging.impl.SLF4JLog
-
- All Implemented Interfaces:
Serializable
,Log
public class SLF4JLog extends Object implements Log, Serializable
Implementation oforg.apache.commons.logging.Log
interface which delegates all processing to a wrappedorg.slf4j.Logger
instance.JCL's FATAL level is mapped to ERROR. All other levels map one to one.
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
debug(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
error(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
error(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
fatal(Object message)
Converts the input parameter to String and then delegates to the error method of the wrappedorg.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 wrappedorg.slf4j.Logger
instance.void
info(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
info(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.boolean
isDebugEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.boolean
isErrorEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.boolean
isFatalEnabled()
Delegates to theisErrorEnabled
method of the wrapped
org.slf4j.Logger
instance.boolean
isInfoEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.boolean
isTraceEnabled()
Delegates to theisDebugEnabled
method of the wrapped
org.slf4j.Logger
instance.boolean
isWarnEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.void
trace(Object message)
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.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 wrappedorg.slf4j.Logger
instance.void
warn(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
warn(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isDebugEnabled
in interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isErrorEnabled
in interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()
Delegates to theisErrorEnabled
method of the wrapped
org.slf4j.Logger
instance.- Specified by:
isFatalEnabled
in interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- true if info enabled, false otherwise
-
isTraceEnabled
public boolean isTraceEnabled()
Delegates to theisDebugEnabled
method of the wrapped
org.slf4j.Logger
instance.- Specified by:
isTraceEnabled
in interfaceLog
- Returns:
- true if trace enabled, false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isWarnEnabled
in interfaceLog
-
trace
public void trace(Object message)
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Logger
instance.
-
trace
public void trace(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Logger
instance.
-
debug
public void debug(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
debug
public void debug(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
info
public void info(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
info
public void info(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
warn
public void warn(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
warn
public void warn(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
error
public void error(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
error
public void error(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
fatal
public void fatal(Object message)
Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Logger
instance.
-
-