Package io.debezium.util
Class Loggings
java.lang.Object
io.debezium.util.Loggings
Functionality for dealing with logging.
- Author:
- Chris Cranford
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
logDebugAndTraceRecord
(org.slf4j.Logger logger, Object record, String message, Object... arguments) Log a debug message and explicitly append the source of the debug entry as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.static void
logErrorAndTraceRecord
(org.slf4j.Logger logger, Object record, String message, Object... arguments) Log an error message and explicitly append the source of the error entry as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.static void
logErrorAndTraceRecord
(org.slf4j.Logger logger, Object record, String message, Throwable t) Log an error message and explicitly append the source of the error entry as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.static void
logWarningAndTraceRecord
(org.slf4j.Logger logger, Object record, String message, Object... arguments) Log a warning message and explicitly append the source of the warning as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
Loggings
public Loggings()
-
-
Method Details
-
logWarningAndTraceRecord
public static void logWarningAndTraceRecord(org.slf4j.Logger logger, Object record, String message, Object... arguments) Log a warning message and explicitly append the source of the warning as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.- Parameters:
logger
- the logger instancerecord
- the record the log entry is based uponmessage
- the warning message to be loggedarguments
- the arguments passed to the warning message
-
logDebugAndTraceRecord
public static void logDebugAndTraceRecord(org.slf4j.Logger logger, Object record, String message, Object... arguments) Log a debug message and explicitly append the source of the debug entry as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.- Parameters:
logger
- the logger instancerecord
- the record the log entry is based uponmessage
- the debug message to be loggedarguments
- the arguments passed to the debug message
-
logErrorAndTraceRecord
public static void logErrorAndTraceRecord(org.slf4j.Logger logger, Object record, String message, Object... arguments) Log an error message and explicitly append the source of the error entry as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.- Parameters:
logger
- the logger instancerecord
- the record the log entry is based uponmessage
- the error message to be loggedarguments
- the arguments passed to the error message
-
logErrorAndTraceRecord
public static void logErrorAndTraceRecord(org.slf4j.Logger logger, Object record, String message, Throwable t) Log an error message and explicitly append the source of the error entry as a separate log entry that uses trace logging to prevent unintended leaking of sensitive data.- Parameters:
logger
- the logger instancerecord
- the record the log entry is based uponmessage
- the error message to be loggedt
- the exception that caused the error
-