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(String message)
void
debug(String message, Object value)
void
debug(String message, Object... arguments)
void
debug(String message, Object value1, Object value2)
void
error(String message)
void
error(String message, Object value)
void
error(String message, Object... arguments)
void
error(String message, Object value1, Object value2)
String
getName()
void
info(String message)
void
info(String message, Object value)
void
info(String message, Object... arguments)
void
info(String message, Object value1, Object value2)
boolean
isDebugEnabled()
boolean
isErrorEnabled()
boolean
isInfoEnabled()
boolean
isTraceEnabled()
boolean
isWarnEnabled()
void
trace(String message)
void
trace(String message, Object value)
void
trace(String message, Object... arguments)
void
trace(String message, Object value1, Object value2)
void
warn(String message)
void
warn(String message, Object value)
void
warn(String message, Object... arguments)
void
warn(String message, Object value1, Object value2)
-
-
-
Method Detail
-
getName
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(String message)
-
isDebugEnabled
boolean isDebugEnabled()
- Returns:
- if the debug log level is enabled for this
ProtonLogger
.
-
debug
void debug(String message)
-
isInfoEnabled
boolean isInfoEnabled()
- Returns:
- if the info log level is enabled for this
ProtonLogger
.
-
info
void info(String message)
-
isWarnEnabled
boolean isWarnEnabled()
- Returns:
- if the warn log level is enabled for this
ProtonLogger
.
-
warn
void warn(String message)
-
isErrorEnabled
boolean isErrorEnabled()
- Returns:
- if the error log level is enabled for this
ProtonLogger
.
-
error
void error(String message)
-
-