Modifier and Type | Field and Description |
---|---|
static NOPLogger |
NOP_LOGGER
The unique instance of NOPLogger.
|
ROOT_LOGGER_NAME
Modifier | Constructor and Description |
---|---|
protected |
NOPLogger()
There is no point in creating multiple instances of NOPLOgger, except by derived classes, hence the protected
access for the constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Always returns the string value "NOP".
|
boolean |
isLevelEnabled(Level level)
For this logger, don't log anything.
|
void |
log(Level level,
java.lang.String msg,
java.lang.Throwable t)
Log an exception (throwable) at the specified level with an accompanying message.
|
LogEnterLeave |
logStartAndEndWithVarargs(Level level,
java.lang.String format,
java.lang.Object... arguments)
Log start and end messages at the specified level, with the specified message format and arguments.
|
void |
logWithVarargs(Level level,
java.lang.String format,
java.lang.Object... arguments)
Log a message at the specified level, with the specified message format and arguments.
|
void |
setLevel(Level level)
Set the level for this logger.
|
debug, debug, debug, debug, debug, debugEnterLeave, debugEnterLeave, error, error, error, error, error, info, info, info, info, info, isDebugEnabled, isErrorEnabled, isInfoEnabled, isTraceEnabled, isWarnEnabled, log, log, log, log, logEnterLeave, trace, trace, trace, trace, trace, traceEnterLeave, traceEnterLeave, warn, warn, warn, warn, warn
public static final NOPLogger NOP_LOGGER
protected NOPLogger()
public java.lang.String getName()
public boolean isLevelEnabled(Level level)
isLevelEnabled
in class Logger
level
- log levelpublic void setLevel(Level level)
Logger
public void logWithVarargs(Level level, java.lang.String format, java.lang.Object... arguments)
Logger
logWithVarargs
in class Logger
level
- logging level to log atformat
- the format stringarguments
- a list of 0 or more argumentspublic void log(Level level, java.lang.String msg, java.lang.Throwable t)
Logger
public LogEnterLeave logStartAndEndWithVarargs(Level level, java.lang.String format, java.lang.Object... arguments)
Logger
logStartAndEndWithVarargs
in class Logger
level
- logging level to log atformat
- the format stringarguments
- a list of 0 or more arguments