Package org.apache.commons.logging.impl
Class SLF4JLog
- java.lang.Object
-
- org.apache.commons.logging.impl.SLF4JLog
-
- All Implemented Interfaces:
java.io.Serializable,Log
public class SLF4JLog extends java.lang.Object implements Log, java.io.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(java.lang.Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voiddebug(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voiderror(java.lang.Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voiderror(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidfatal(java.lang.Object message)Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.voidfatal(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.voidinfo(java.lang.Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidinfo(java.lang.Object message, java.lang.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 theisDebugEnabledmethod of the wrappedorg.slf4j.Loggerinstance.booleanisWarnEnabled()Directly delegates to the wrappedorg.slf4j.Loggerinstance.voidtrace(java.lang.Object message)Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.voidtrace(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.voidwarn(java.lang.Object message)Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.voidwarn(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
-
-
Method Detail
-
isDebugEnabled
public boolean isDebugEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isDebugEnabledin 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
-
isInfoEnabled
public boolean isInfoEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isInfoEnabledin interfaceLog- Returns:
- true if info enabled, false otherwise
-
isTraceEnabled
public boolean isTraceEnabled()
Delegates to theisDebugEnabledmethod of the wrappedorg.slf4j.Loggerinstance.- Specified by:
isTraceEnabledin interfaceLog- Returns:
- true if trace enabled, false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()
Directly delegates to the wrappedorg.slf4j.Loggerinstance.- Specified by:
isWarnEnabledin interfaceLog
-
trace
public void trace(java.lang.Object message)
Converts the input parameter to String and then delegates to the debug method of the wrappedorg.slf4j.Loggerinstance.
-
trace
public void trace(java.lang.Object message, java.lang.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(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
debug
public void debug(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
info
public void info(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
info
public void info(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
warn
public void warn(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
warn
public void warn(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
error
public void error(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
error
public void error(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the wrappedorg.slf4j.Loggerinstance.
-
fatal
public void fatal(java.lang.Object message)
Converts the input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.
-
fatal
public void fatal(java.lang.Object message, java.lang.Throwable t)Converts the first input parameter to String and then delegates to the error method of the wrappedorg.slf4j.Loggerinstance.
-
-