Class NOPULogger
- All Implemented Interfaces:
ULogger
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateThere is no point in people creating multiple instances of NullLogger. -
Method Summary
Modifier and TypeMethodDescriptionvoidLog a message object with the DEBUG level.voidLog a parameterized message object at the DEBUG level.voidLog a message object with theDEBUGlevel including the stack trace of theThrowabletpassed as parameter.voidLog a parameterized message object at the DEBUG level.voidLog a message object with the ERROR level.voidLog a parameterized message object at the ERROR level.voidLog a message object with theERRORlevel including the stack trace of theThrowabletpassed as parameter.voidLog a parameterized message object at the ERROR level.static NOPULoggerGet instance.voidLog a message object with the INFO level.voidLog a parameterized message object at the INFO level.voidLog a message object with theINFOlevel including the stack trace of theThrowabletpassed as parameter.voidLog a parameterized message object at the INFO level.booleanIs the logger instance enabled for the DEBUG level?booleanIs the logger instance enabled for the ERROR level?booleanIs the logger instance enabled for the INFO level?booleanIs the logger instance enabled for the WARN level?voidLog a message object with the WARN level.voidLog a parameterized message object at the WARN level.voidLog a message object with theWARNlevel including the stack trace of theThrowabletpassed as parameter.voidLog a parameterized message object at the WARN level.
-
Field Details
-
NOP_LOGGER
The unique instance of NOPLogger.
-
-
Constructor Details
-
NOPULogger
private NOPULogger()There is no point in people creating multiple instances of NullLogger. Hence, the private access modifier.
-
-
Method Details
-
getLogger
Get instance.- Parameters:
name- logger name.- Returns:
- logger.
-
isDebugEnabled
public boolean isDebugEnabled()Is the logger instance enabled for the DEBUG level?- Specified by:
isDebugEnabledin interfaceULogger- Returns:
- true if debug is enabled.
-
debug
-
debug
Log a parameterized message object at the DEBUG level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
debug
Log a parameterized message object at the DEBUG level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
debug
-
isInfoEnabled
public boolean isInfoEnabled()Is the logger instance enabled for the INFO level?- Specified by:
isInfoEnabledin interfaceULogger- Returns:
- true if debug is enabled.
-
info
-
info
Log a parameterized message object at the INFO level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
info
Log a parameterized message object at the INFO level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
info
-
isWarnEnabled
public boolean isWarnEnabled()Is the logger instance enabled for the WARN level?- Specified by:
isWarnEnabledin interfaceULogger- Returns:
- true if debug is enabled.
-
warn
-
warn
Log a parameterized message object at the WARN level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
warn
Log a parameterized message object at the WARN level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
warn
-
isErrorEnabled
public boolean isErrorEnabled()Is the logger instance enabled for the ERROR level?- Specified by:
isErrorEnabledin interfaceULogger- Returns:
- true if debug is enabled.
-
error
-
error
Log a parameterized message object at the ERROR level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
error
Log a parameterized message object at the ERROR level.This form is useful in avoiding the superflous object creation problem when invoking this method while it is disabled.
-
error
-