Package org.apache.commons.logging.impl
Class SLF4JLocationAwareLog
java.lang.Object
org.apache.commons.logging.impl.SLF4JLocationAwareLog
- 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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConverts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidConverts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidConverts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidConverts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidConverts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.voidConverts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.voidConverts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidConverts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.booleanDirectly delegates to the wrappedorg.slf4j.Loggerinstance.booleanDirectly delegates to the wrappedorg.slf4j.Loggerinstance.booleanDelegates to theisErrorEnabledmethod of the wrappedorg.slf4j.Loggerinstance.booleanDirectly delegates to the wrappedorg.slf4j.Loggerinstance.booleanDelegates to theisTraceEnabledmethod of the wrappedorg.slf4j.Loggerinstance.booleanDirectly delegates to the wrappedorg.slf4j.Loggerinstance.protected ObjectReplace this instance with a homonymous (same name) logger returned by LoggerFactory.voidConverts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.voidConverts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.voidConverts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidConverts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
Field Details
-
name
-
-
Constructor Details
-
SLF4JLocationAwareLog
-
-
Method Details
-
isTraceEnabled
Delegates to theisTraceEnabledmethod of the wrappedorg.slf4j.Loggerinstance.- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if trace enabled, false otherwise
-
isDebugEnabled
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isDebugEnabledin interfaceLog
-
isInfoEnabled
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if info enabled, false otherwise
-
isWarnEnabled
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isWarnEnabledin interfaceLog
-
isErrorEnabled
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isErrorEnabledin interfaceLog
-
isFatalEnabled
Delegates to theisErrorEnabledmethod of the wrappedorg.slf4j.Loggerinstance.- Specified by:
isFatalEnabledin interfaceLog
-
trace
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance. -
trace
Converts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance. -
debug
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
debug
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
info
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
info
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
warn
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
warn
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
error
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
error
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance. -
fatal
Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance. -
fatal
Converts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance. -
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
-