Package org.apache.commons.logging.impl
Class SLF4JLog
java.lang.Object
org.apache.commons.logging.impl.SLF4JLog
- All Implemented Interfaces:
Serializable
,Log
Implementation of
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.
- Author:
- Ceki Gülcü
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Logger
instance.void
Converts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Logger
instance.void
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.boolean
Directly delegates to the wrappedorg.slf4j.Logger
instance.boolean
Directly delegates to the wrappedorg.slf4j.Logger
instance.boolean
Delegates to theisErrorEnabled
method of the wrapped
org.slf4j.Logger
instance.boolean
Directly delegates to the wrappedorg.slf4j.Logger
instance.boolean
Delegates to theisDebugEnabled
method of the wrapped
org.slf4j.Logger
instance.boolean
Directly delegates to the wrappedorg.slf4j.Logger
instance.protected Object
Replace this instance with a homonymous (same name) logger returned by LoggerFactory.void
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Logger
instance.void
Converts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Logger
instance.void
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.void
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance.
-
Field Details
-
name
-
-
Constructor Details
-
SLF4JLog
-
-
Method Details
-
isDebugEnabled
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isDebugEnabled
in interfaceLog
-
isErrorEnabled
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isErrorEnabled
in interfaceLog
-
isFatalEnabled
Delegates to theisErrorEnabled
method of the wrapped
org.slf4j.Logger
instance.- Specified by:
isFatalEnabled
in interfaceLog
-
isInfoEnabled
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isInfoEnabled
in interfaceLog
- Returns:
- true if info enabled, false otherwise
-
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
Directly delegates to the wrappedorg.slf4j.Logger
instance.- Specified by:
isWarnEnabled
in interfaceLog
-
trace
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Logger
instance. -
trace
Converts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Logger
instance. -
debug
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
debug
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
info
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
info
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
warn
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
warn
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
error
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
error
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Logger
instance. -
fatal
Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Logger
instance. -
fatal
Converts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Logger
instance. -
readResolve
Replace this instance with a homonymous (same name) logger returned by LoggerFactory. Note that this method is only called during deserialization.- Returns:
- logger with same name as returned by LoggerFactory
- Throws:
ObjectStreamException
-