Package org.apache.commons.logging.impl
Class SLF4JLocationAwareLog
- java.lang.Object
-
- org.apache.commons.logging.impl.SLF4JLocationAwareLog
-
- All Implemented Interfaces:
Serializable,Log
public class SLF4JLocationAwareLog extends Object implements Log, Serializable
Implementation oforg.apache.commons.logging.Loginterface which delegates all processing to a wrappedorg.slf4j.Loggerinstance.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 voiddebug(Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voiddebug(Object message, Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voiderror(Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voiderror(Object message, Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidfatal(Object message)Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.voidfatal(Object message, Throwable t)Converts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.voidinfo(Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidinfo(Object message, Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.booleanisDebugEnabled()Directly delegates to the wrappedorg.slf4j.Loggerinstance.booleanisErrorEnabled()Directly delegates to the wrappedorg.slf4j.Loggerinstance.booleanisFatalEnabled()Delegates to theisErrorEnabledmethod of the wrappedorg.slf4j.Loggerinstance.booleanisInfoEnabled()Directly delegates to the wrappedorg.slf4j.Loggerinstance.booleanisTraceEnabled()Delegates to theisTraceEnabledmethod of the wrappedorg.slf4j.Loggerinstance.booleanisWarnEnabled()Directly delegates to the wrappedorg.slf4j.Loggerinstance.voidtrace(Object message)Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.voidtrace(Object message, Throwable t)Converts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.voidwarn(Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidwarn(Object message, Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
-
-
Method Detail
-
isTraceEnabled
public boolean isTraceEnabled()
Delegates to theisTraceEnabledmethod of the wrappedorg.slf4j.Loggerinstance.- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if trace enabled, false otherwise
-
isDebugEnabled
public boolean isDebugEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isDebugEnabledin interfaceLog
-
isInfoEnabled
public boolean isInfoEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if info enabled, false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isWarnEnabledin interfaceLog
-
isErrorEnabled
public boolean isErrorEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isErrorEnabledin interfaceLog
-
isFatalEnabled
public boolean isFatalEnabled()
Delegates to theisErrorEnabledmethod of the wrappedorg.slf4j.Loggerinstance.- Specified by:
isFatalEnabledin interfaceLog
-
trace
public void trace(Object message)
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.
-
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.Loggerinstance.
-
debug
public void debug(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
debug
public void debug(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
info
public void info(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
info
public void info(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
warn
public void warn(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
warn
public void warn(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
error
public void error(Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
error
public void error(Object message, Throwable t)
Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
fatal
public void fatal(Object message)
Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.
-
-