Package org.apache.qpid.protonj2.logging
Class NoOpProtonLogger
java.lang.Object
org.apache.qpid.protonj2.logging.NoOpProtonLogger
- All Implemented Interfaces:
ProtonLogger
Simple proton logger implementation that performs no logging.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final NoOpProtonLogger
Singleton logger instance that should be used for all No-op logging operations. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
void
void
void
void
getName()
void
void
void
void
boolean
boolean
boolean
boolean
boolean
void
void
void
void
void
void
void
void
-
Field Details
-
INSTANCE
Singleton logger instance that should be used for all No-op logging operations.
-
-
Method Details
-
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
- Specified by:
trace
in interfaceProtonLogger
-
trace
- Specified by:
trace
in interfaceProtonLogger
-
trace
- Specified by:
trace
in interfaceProtonLogger
-
trace
- 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
- Specified by:
debug
in interfaceProtonLogger
-
debug
- Specified by:
debug
in interfaceProtonLogger
-
debug
- Specified by:
debug
in interfaceProtonLogger
-
debug
- 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
- Specified by:
info
in interfaceProtonLogger
-
info
- Specified by:
info
in interfaceProtonLogger
-
info
- Specified by:
info
in interfaceProtonLogger
-
info
- 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
- Specified by:
warn
in interfaceProtonLogger
-
warn
- Specified by:
warn
in interfaceProtonLogger
-
warn
- Specified by:
warn
in interfaceProtonLogger
-
warn
- 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
- Specified by:
error
in interfaceProtonLogger
-
error
- Specified by:
error
in interfaceProtonLogger
-
error
- Specified by:
error
in interfaceProtonLogger
-
error
- Specified by:
error
in interfaceProtonLogger
-