public class SLF4JLog extends java.lang.Object implements Log, java.io.Serializable
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.
Modifier and Type | Method and Description |
---|---|
void |
debug(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
debug(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
void |
error(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
error(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
void |
fatal(java.lang.Object message)
Converts the input parameter to String and then delegates to the error
method of the wrapped
org.slf4j.Logger instance. |
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 wrapped
org.slf4j.Logger instance. |
void |
info(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
info(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
boolean |
isDebugEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
boolean |
isErrorEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
boolean |
isFatalEnabled()
Delegates to the isErrorEnabled
|
boolean |
isInfoEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
boolean |
isTraceEnabled()
Delegates to the isDebugEnabled
|
boolean |
isWarnEnabled()
Directly delegates to the wrapped
org.slf4j.Logger instance. |
void |
trace(java.lang.Object message)
Converts the input parameter to String and then delegates to the debug
method of the wrapped
org.slf4j.Logger instance. |
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 wrapped
org.slf4j.Logger instance. |
void |
warn(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger instance. |
void |
warn(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped
org.slf4j.Logger instance. |
public boolean isDebugEnabled()
org.slf4j.Logger
instance.isDebugEnabled
in interface Log
public boolean isErrorEnabled()
org.slf4j.Logger
instance.isErrorEnabled
in interface Log
public boolean isFatalEnabled()
isErrorEnabled method of the wrapped
org.slf4j.Logger
instance.
- Specified by:
isFatalEnabled
in interface Log
-
isInfoEnabled
public boolean isInfoEnabled()
Directly delegates to the wrapped org.slf4j.Logger
instance.
- Specified by:
isInfoEnabled
in interface Log
- Returns:
- true if info enabled, false otherwise
-
isTraceEnabled
public boolean isTraceEnabled()
Delegates to the isDebugEnabled method of the wrapped
org.slf4j.Logger
instance.
- Specified by:
isTraceEnabled
in interface Log
- Returns:
- true if trace enabled, false otherwise
-
isWarnEnabled
public boolean isWarnEnabled()
Directly delegates to the wrapped org.slf4j.Logger
instance.
- Specified by:
isWarnEnabled
in interface Log
-
trace
public void trace(java.lang.Object message)
Converts the input parameter to String and then delegates to the debug
method of the wrapped org.slf4j.Logger
instance.
-
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 wrapped org.slf4j.Logger
instance.
-
debug
public void debug(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger
instance.
-
debug
public void debug(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped org.slf4j.Logger
instance.
-
info
public void info(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger
instance.
-
info
public void info(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped org.slf4j.Logger
instance.
-
warn
public void warn(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger
instance.
-
warn
public void warn(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped org.slf4j.Logger
instance.
-
error
public void error(java.lang.Object message)
Converts the input parameter to String and then delegates to the wrapped
org.slf4j.Logger
instance.
-
error
public void error(java.lang.Object message,
java.lang.Throwable t)
Converts the first input parameter to String and then delegates to the
wrapped org.slf4j.Logger
instance.
-
fatal
public void fatal(java.lang.Object message)
Converts the input parameter to String and then delegates to the error
method of the wrapped org.slf4j.Logger
instance.
-
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 wrapped org.slf4j.Logger
instance.
"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"