Package io.skodjob.testframe.utils
Class LoggerUtils
java.lang.Object
io.skodjob.testframe.utils.LoggerUtils
Utility methods for logging.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends io.fabric8.kubernetes.api.model.HasMetadata>
voidlogResource(String operation, org.slf4j.event.Level logLevel, T resource) Log resource with correct formatstatic <T extends io.fabric8.kubernetes.api.model.HasMetadata>
voidlogResource(String operation, T resource) Log resource with correct formatstatic voidLogs a separator line using the default separator character and length.static voidlogSeparator(String delimiterChar, int length) Logs a separator line with a custom delimiter character and length.
-
Field Details
-
RESOURCE_LOGGER_PATTERN
Pattern for logging resource information without namespace.- See Also:
-
RESOURCE_WITH_NAMESPACE_LOGGER_PATTERN
Pattern for logging resource information with namespace.- See Also:
-
-
Method Details
-
logSeparator
public static void logSeparator()Logs a separator line using the default separator character and length. -
logSeparator
Logs a separator line with a custom delimiter character and length.- Parameters:
delimiterChar- The delimiter character.length- The length of the separator line.
-
logResource
public static <T extends io.fabric8.kubernetes.api.model.HasMetadata> void logResource(String operation, T resource) Log resource with correct format- Type Parameters:
T- The type of the resources.- Parameters:
operation- operation with resourceresource- resource
-
logResource
public static <T extends io.fabric8.kubernetes.api.model.HasMetadata> void logResource(String operation, org.slf4j.event.Level logLevel, T resource) Log resource with correct format- Type Parameters:
T- The type of the resources.- Parameters:
operation- operation with resourcelogLevel- log levelresource- resource
-