This is an automated email from the ASF dual-hosted git repository.

chia7712 pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/kafka.git


The following commit(s) were added to refs/heads/trunk by this push:
     new 732b22daff3 MINOR: Upgrade log4j to version 2.25.1 (#20132)
732b22daff3 is described below

commit 732b22daff31671e9a01ee3ee637e0f4f1bc8303
Author: Michael Morris <105736419+michaelmorris...@users.noreply.github.com>
AuthorDate: Sun Aug 24 12:35:12 2025 -0600

    MINOR: Upgrade log4j to version 2.25.1 (#20132)
    
    Upgrade log4j to version 2.25.1
    
    Reviewers: Ismael Juma <ism...@juma.me.uk>, Chia-Ping Tsai
     <chia7...@gmail.com>
---
 LICENSE-binary                                                    | 8 ++++----
 .../src/main/java/org/apache/kafka/connect/runtime/Loggers.java   | 2 +-
 gradle/dependencies.gradle                                        | 2 +-
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/LICENSE-binary b/LICENSE-binary
index 6e114e8e925..c8fa1e8207a 100644
--- a/LICENSE-binary
+++ b/LICENSE-binary
@@ -238,10 +238,10 @@ License Version 2.0:
 - jetty-util-12.0.22
 - jose4j-0.9.6
 - jspecify-1.0.0
-- log4j-api-2.24.3
-- log4j-core-2.24.3
-- log4j-slf4j-impl-2.24.3
-- log4j-1.2-api-2.24.3
+- log4j-api-2.25.1
+- log4j-core-2.25.1
+- log4j-slf4j-impl-2.25.1
+- log4j-1.2-api-2.25.1
 - lz4-java-1.8.0
 - maven-artifact-3.9.6
 - metrics-core-2.2.0
diff --git 
a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Loggers.java 
b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Loggers.java
index 3767e31ac7c..1a79698ae9f 100644
--- 
a/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Loggers.java
+++ 
b/connect/runtime/src/main/java/org/apache/kafka/connect/runtime/Loggers.java
@@ -255,7 +255,7 @@ public abstract class Loggers {
             LoggerContext context = (LoggerContext) 
LogManager.getContext(false);
             var results = new HashMap<String, 
org.apache.logging.log4j.core.Logger>();
             context.getConfiguration().getLoggers().forEach((name, logger) -> 
results.put(name, loggerContext.getLogger(name)));
-            context.getLoggerRegistry().getLoggers().forEach(logger -> 
results.put(logger.getName(), logger));
+            context.getLoggers().forEach(logger -> 
results.put(logger.getName(), logger));
             return results;
         }
 
diff --git a/gradle/dependencies.gradle b/gradle/dependencies.gradle
index bd957d7f8a7..6d333ab03f6 100644
--- a/gradle/dependencies.gradle
+++ b/gradle/dependencies.gradle
@@ -105,7 +105,7 @@ versions += [
   kafka_38: "3.8.1",
   kafka_39: "3.9.1",
   kafka_40: "4.0.0",
-  log4j2: "2.24.3",
+  log4j2: "2.25.1",
   // When updating lz4 make sure the compression levels in 
org.apache.kafka.common.record.CompressionType are still valid
   lz4: "1.8.0",
   mavenArtifact: "3.9.6",

Reply via email to