- All Implemented Interfaces:
ILogger
Dummy implementation of logger that doesn't do anything.
It can be used in testing or in situations when logger is required
but shall be disabled.
- See Also:
-
-
Constructor Summary
Constructors
Creates a new instance of the logger.
-
Method Summary
void
Logs a high-level debug information for troubleshooting.
void
Logs recoverable application error.
void
Logs recoverable application error.
void
Logs recoverable application error.
void
Logs fatal (unrecoverable) message that caused the process to crash.
void
Logs fatal (unrecoverable) message that caused the process to crash.
void
Logs fatal (unrecoverable) message that caused the process to crash.
Gets the maximum log level.
void
Logs an important information message
void
Logs a message at specified log level.
void
Set the maximum log level.
void
Logs a low-level debug information for troubleshooting.
void
Logs a warning that may or may not have a negative impact.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NullLogger
public NullLogger()
Creates a new instance of the logger.
-
Method Details
-
getLevel
Gets the maximum log level. Messages with higher log level are filtered out.
- Specified by:
getLevel in interface ILogger
- Returns:
- the maximum log level.
-
setLevel
Set the maximum log level.
- Specified by:
setLevel in interface ILogger
- Parameters:
value - a new maximum log level.
-
log
Logs a message at specified log level.
- Specified by:
log in interface ILogger
- Parameters:
level - a log level.
correlationId - (optional) transaction id to trace execution through
call chain.
error - an error object associated with this message.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
fatal
Logs fatal (unrecoverable) message that caused the process to crash.
- Specified by:
fatal in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
fatal
Logs fatal (unrecoverable) message that caused the process to crash.
- Specified by:
fatal in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
error - an error object associated with this message.
-
fatal
Logs fatal (unrecoverable) message that caused the process to crash.
- Specified by:
fatal in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
error - an error object associated with this message.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
error
Logs recoverable application error.
- Specified by:
error in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
error
Logs recoverable application error.
- Specified by:
error in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
error - an error object associated with this message.
-
error
Logs recoverable application error.
- Specified by:
error in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
error - an error object associated with this message.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
warn
Logs a warning that may or may not have a negative impact.
- Specified by:
warn in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
info
Logs an important information message
- Specified by:
info in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
debug
Logs a high-level debug information for troubleshooting.
- Specified by:
debug in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
message - a human-readable message to log.
args - arguments to parameterize the message.
-
trace
Logs a low-level debug information for troubleshooting.
- Specified by:
trace in interface ILogger
- Parameters:
correlationId - (optional) transaction id to trace execution through
call chain.
message - a human-readable message to log.
args - arguments to parameterize the message.