public interface Logger
Some methods in this interface take a message template together with a list of parameters. These methods are expected to construct the final
message only if the needed logging level is enabled. Driver expects formatting to be done using String.format(String, Object...) method.
Thus all supplied message templates will contain "%s" as parameter placeholders. This is different from all SLF4J-compatible logging frameworks
where parameter placeholder is "{}". Implementations of this interface should adapt placeholders from "%s" to "{}", if required.
| Modifier and Type | Method and Description |
|---|---|
void |
debug(String message,
Object... params)
Logs bolt messages sent and received by this driver.
|
void |
debug(String message,
Throwable throwable)
Logs debug message with throwable.
|
void |
error(String message,
Throwable cause)
Logs errors from this driver.
|
void |
info(String message,
Object... params)
Logs information from the driver.
|
boolean |
isDebugEnabled()
Return true if the debug level is enabled.
|
boolean |
isTraceEnabled()
Return true if the trace logging level is enabled.
|
void |
trace(String message,
Object... params)
Logs binary sent and received by this driver.
|
void |
warn(String message,
Object... params)
Logs warnings that happened when using the driver.
|
void |
warn(String message,
Throwable cause)
Logs warnings that happened during using the driver
|
void error(String message, Throwable cause)
Examples of errors logged using this method:
message - the error message.cause - the cause of the error.void info(String message, Object... params)
Example of info messages logged using this method:
message - the information message template. Can contain String.format(String, Object...)-style placeholders, like "%s".params - parameters used in the information message.void warn(String message, Object... params)
Example of info messages logged using this method:
message - the warning message template. Can contain String.format(String, Object...)-style placeholders, like "%s".params - parameters used in the warning message.void warn(String message, Throwable cause)
Example of info messages logged using this method:
message - the warning messagecause - the cause of the warningvoid debug(String message, Object... params)
isDebugEnabled() returns true.
This logging level generates a lot of log entries.
Example of debug messages logged using this method:
message - the debug message template. Can contain String.format(String, Object...)-style placeholders, like "%s".params - parameters used in generating the bolt messagevoid debug(String message, Throwable throwable)
message - the message to logthrowable - the throwable to include into the log entryvoid trace(String message, Object... params)
isTraceEnabled() returns true.
This logging level generates huge amount of log entries.
Example of debug messages logged using this method:
message - the trace message template. Can contain String.format(String, Object...)-style placeholders, like "%s".params - parameters used in generating the hex messageboolean isTraceEnabled()
trace(String, Object...)boolean isDebugEnabled()
debug(String, Object...)