Package org.apache.flink.util
Class JobIDLoggingUtil
- java.lang.Object
-
- org.apache.flink.util.JobIDLoggingUtil
-
public class JobIDLoggingUtil extends Object
Utility class for verifying the presence and correctness of a specific key-value pair in the logging context of log events.
-
-
Constructor Summary
Constructors Constructor Description JobIDLoggingUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidassertKeyPresent(String key, String expectedValue, LoggerAuditingExtension ext, List<String> expectedPatterns, String... ignoredPatterns)Asserts that the specified key is present in the log events with the expected value.static voidassertKeyPresent(String key, Set<String> expectedValues, LoggerAuditingExtension ext, List<String> expectedPatterns, String... ignoredPatterns)Asserts that the specified key is present in the log events with the expected values.
-
-
-
Method Detail
-
assertKeyPresent
public static void assertKeyPresent(String key, Set<String> expectedValues, LoggerAuditingExtension ext, List<String> expectedPatterns, String... ignoredPatterns)
Asserts that the specified key is present in the log events with the expected values.- Parameters:
key- the key to look forexpectedValues- the expected values of the keyext- the LoggerAuditingExtension instanceexpectedPatterns- the list of expected patternsignoredPatterns- the array of ignore patterns
-
assertKeyPresent
public static void assertKeyPresent(String key, String expectedValue, LoggerAuditingExtension ext, List<String> expectedPatterns, String... ignoredPatterns)
Asserts that the specified key is present in the log events with the expected value.- Parameters:
key- the key to look forexpectedValue- the expected value of the keyext- the LoggerAuditingExtension instanceexpectedPatterns- the list of expected patternsignoredPatterns- the array of ignore patterns
-
-