Package org.apache.qpid.protonj2.logging
Class Slf4JLoggerWrapper
- java.lang.Object
-
- org.apache.qpid.protonj2.logging.Slf4JLoggerWrapper
-
- All Implemented Interfaces:
ProtonLogger
public class Slf4JLoggerWrapper extends java.lang.Object implements ProtonLogger
A Wrapper around an Slf4J Logger used to proxy logging calls to that framework when it is available.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
debug(java.lang.String message)
void
debug(java.lang.String message, java.lang.Object value)
void
debug(java.lang.String message, java.lang.Object... arguments)
void
debug(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
void
error(java.lang.String message)
void
error(java.lang.String message, java.lang.Object value)
void
error(java.lang.String message, java.lang.Object... arguments)
void
error(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
java.lang.String
getName()
void
info(java.lang.String message)
void
info(java.lang.String message, java.lang.Object value)
void
info(java.lang.String message, java.lang.Object... arguments)
void
info(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
trace(java.lang.String message)
void
trace(java.lang.String message, java.lang.Object value)
void
trace(java.lang.String message, java.lang.Object... arguments)
void
trace(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
void
warn(java.lang.String message)
void
warn(java.lang.String message, java.lang.Object value)
void
warn(java.lang.String message, java.lang.Object... arguments)
void
warn(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
-
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceProtonLogger
- Returns:
- the name that was given to this logger on creation.
-
isTraceEnabled
public boolean isTraceEnabled()
- Specified by:
isTraceEnabled
in interfaceProtonLogger
- Returns:
- if the trace log level is enabled for this
ProtonLogger
.
-
trace
public void trace(java.lang.String message)
- Specified by:
trace
in interfaceProtonLogger
-
trace
public void trace(java.lang.String message, java.lang.Object value)
- Specified by:
trace
in interfaceProtonLogger
-
trace
public void trace(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
- Specified by:
trace
in interfaceProtonLogger
-
trace
public void trace(java.lang.String message, java.lang.Object... arguments)
- Specified by:
trace
in interfaceProtonLogger
-
isDebugEnabled
public boolean isDebugEnabled()
- Specified by:
isDebugEnabled
in interfaceProtonLogger
- Returns:
- if the debug log level is enabled for this
ProtonLogger
.
-
debug
public void debug(java.lang.String message)
- Specified by:
debug
in interfaceProtonLogger
-
debug
public void debug(java.lang.String message, java.lang.Object value)
- Specified by:
debug
in interfaceProtonLogger
-
debug
public void debug(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
- Specified by:
debug
in interfaceProtonLogger
-
debug
public void debug(java.lang.String message, java.lang.Object... arguments)
- Specified by:
debug
in interfaceProtonLogger
-
isInfoEnabled
public boolean isInfoEnabled()
- Specified by:
isInfoEnabled
in interfaceProtonLogger
- Returns:
- if the info log level is enabled for this
ProtonLogger
.
-
info
public void info(java.lang.String message)
- Specified by:
info
in interfaceProtonLogger
-
info
public void info(java.lang.String message, java.lang.Object value)
- Specified by:
info
in interfaceProtonLogger
-
info
public void info(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
- Specified by:
info
in interfaceProtonLogger
-
info
public void info(java.lang.String message, java.lang.Object... arguments)
- Specified by:
info
in interfaceProtonLogger
-
isWarnEnabled
public boolean isWarnEnabled()
- Specified by:
isWarnEnabled
in interfaceProtonLogger
- Returns:
- if the warn log level is enabled for this
ProtonLogger
.
-
warn
public void warn(java.lang.String message)
- Specified by:
warn
in interfaceProtonLogger
-
warn
public void warn(java.lang.String message, java.lang.Object value)
- Specified by:
warn
in interfaceProtonLogger
-
warn
public void warn(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
- Specified by:
warn
in interfaceProtonLogger
-
warn
public void warn(java.lang.String message, java.lang.Object... arguments)
- Specified by:
warn
in interfaceProtonLogger
-
isErrorEnabled
public boolean isErrorEnabled()
- Specified by:
isErrorEnabled
in interfaceProtonLogger
- Returns:
- if the error log level is enabled for this
ProtonLogger
.
-
error
public void error(java.lang.String message)
- Specified by:
error
in interfaceProtonLogger
-
error
public void error(java.lang.String message, java.lang.Object value)
- Specified by:
error
in interfaceProtonLogger
-
error
public void error(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
- Specified by:
error
in interfaceProtonLogger
-
error
public void error(java.lang.String message, java.lang.Object... arguments)
- Specified by:
error
in interfaceProtonLogger
-
-