Package org.apache.qpid.protonj2.logging
Interface ProtonLogger
-
- All Known Implementing Classes:
NoOpProtonLogger
,Slf4JLoggerWrapper
public interface ProtonLogger
Proton Logger abstractionThis interface provides an abstraction to be used around third party Logging frameworks such as slf4j, log4j etc.
-
-
Method Summary
All Methods Instance Methods Abstract 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
java.lang.String getName()
- Returns:
- the name that was given to this logger on creation.
-
isTraceEnabled
boolean isTraceEnabled()
- Returns:
- if the trace log level is enabled for this
ProtonLogger
.
-
trace
void trace(java.lang.String message)
-
trace
void trace(java.lang.String message, java.lang.Object value)
-
trace
void trace(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
-
trace
void trace(java.lang.String message, java.lang.Object... arguments)
-
isDebugEnabled
boolean isDebugEnabled()
- Returns:
- if the debug log level is enabled for this
ProtonLogger
.
-
debug
void debug(java.lang.String message)
-
debug
void debug(java.lang.String message, java.lang.Object value)
-
debug
void debug(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
-
debug
void debug(java.lang.String message, java.lang.Object... arguments)
-
isInfoEnabled
boolean isInfoEnabled()
- Returns:
- if the info log level is enabled for this
ProtonLogger
.
-
info
void info(java.lang.String message)
-
info
void info(java.lang.String message, java.lang.Object value)
-
info
void info(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
-
info
void info(java.lang.String message, java.lang.Object... arguments)
-
isWarnEnabled
boolean isWarnEnabled()
- Returns:
- if the warn log level is enabled for this
ProtonLogger
.
-
warn
void warn(java.lang.String message)
-
warn
void warn(java.lang.String message, java.lang.Object value)
-
warn
void warn(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
-
warn
void warn(java.lang.String message, java.lang.Object... arguments)
-
isErrorEnabled
boolean isErrorEnabled()
- Returns:
- if the error log level is enabled for this
ProtonLogger
.
-
error
void error(java.lang.String message)
-
error
void error(java.lang.String message, java.lang.Object value)
-
error
void error(java.lang.String message, java.lang.Object value1, java.lang.Object value2)
-
error
void error(java.lang.String message, java.lang.Object... arguments)
-
-