From ee78a2c2d4c38e9ba827d534ba4eb3132073cc05 Mon Sep 17 00:00:00 2001 From: Ronaldo Lanhellas Date: Sun, 15 Jun 2025 11:53:26 -0300 Subject: [PATCH] feat: adding new JsonTemplateLayout support for logging in Cluster Operator (strimzi#11415) Signed-off-by: Ronaldo Lanhellas --- CHANGELOG.md | 1 + cluster-operator/pom.xml | 7 +++++++ pom.xml | 6 ++++++ 3 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9b8512599..f419b30dcf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ * Add support for Kafka 3.9.1 * Fixed MirrorMaker 2 client rack init container override being ignored. * Support for Kubernetes Image Volumes to mount custom plugins +* Adding support for [JsonTemplateLayout](https://logging.apache.org/log4j/2.x/manual/json-template-layout.html) in Log4j2 ### Major changes, deprecations and removals diff --git a/cluster-operator/pom.xml b/cluster-operator/pom.xml index 486e67d61d..da79f2b5f9 100644 --- a/cluster-operator/pom.xml +++ b/cluster-operator/pom.xml @@ -138,6 +138,11 @@ org.apache.logging.log4j log4j-slf4j-impl + + org.apache.logging.log4j + log4j-layout-template-json + runtime + io.strimzi kafka-oauth-server @@ -322,6 +327,8 @@ org.apache.logging.log4j:log4j-core org.apache.logging.log4j:log4j-slf4j-impl + + org.apache.logging.log4j:log4j-layout-template-json io.netty:netty-transport-native-epoll:jar diff --git a/pom.xml b/pom.xml index 94bc2d31f3..c0b43e19f8 100644 --- a/pom.xml +++ b/pom.xml @@ -444,6 +444,12 @@ log4j-slf4j-impl ${log4j.version} + + org.apache.logging.log4j + log4j-layout-template-json + ${log4j.version} + runtime + org.apache.kafka kafka-clients