Package org.apache.qpid.protonj2.logging
Class NoOpProtonLogger
- java.lang.Object
-
- org.apache.qpid.protonj2.logging.NoOpProtonLogger
-
- All Implemented Interfaces:
ProtonLogger
public class NoOpProtonLogger extends Object implements ProtonLogger
Simple proton logger implementation that performs no logging.
-
-
Field Summary
Fields Modifier and Type Field Description static NoOpProtonLogger
INSTANCE
Singleton logger instance that should be used for all No-op logging operations.
-
Method Summary
All Methods Instance Methods Concrete 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)
-
-
-
Field Detail
-
INSTANCE
public static final NoOpProtonLogger INSTANCE
Singleton logger instance that should be used for all No-op logging operations.
-
-
Method Detail
-
getName
public 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(String message)
- Specified by:
trace
in interfaceProtonLogger
-
trace
public void trace(String message, Object value)
- Specified by:
trace
in interfaceProtonLogger
-
trace
public void trace(String message, Object value1, Object value2)
- Specified by:
trace
in interfaceProtonLogger
-
trace
public void trace(String message, 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(String message)
- Specified by:
debug
in interfaceProtonLogger
-
debug
public void debug(String message, Object value)
- Specified by:
debug
in interfaceProtonLogger
-
debug
public void debug(String message, Object value1, Object value2)
- Specified by:
debug
in interfaceProtonLogger
-
debug
public void debug(String message, 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(String message)
- Specified by:
info
in interfaceProtonLogger
-
info
public void info(String message, Object value)
- Specified by:
info
in interfaceProtonLogger
-
info
public void info(String message, Object value1, Object value2)
- Specified by:
info
in interfaceProtonLogger
-
info
public void info(String message, 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(String message)
- Specified by:
warn
in interfaceProtonLogger
-
warn
public void warn(String message, Object value)
- Specified by:
warn
in interfaceProtonLogger
-
warn
public void warn(String message, Object value1, Object value2)
- Specified by:
warn
in interfaceProtonLogger
-
warn
public void warn(String message, 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(String message)
- Specified by:
error
in interfaceProtonLogger
-
error
public void error(String message, Object value)
- Specified by:
error
in interfaceProtonLogger
-
error
public void error(String message, Object value1, Object value2)
- Specified by:
error
in interfaceProtonLogger
-
error
public void error(String message, Object... arguments)
- Specified by:
error
in interfaceProtonLogger
-
-