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

ddanielr pushed a commit to branch 2.1
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/2.1 by this push:
     new 5abb7fac8a Update to the latest log4j version (#6499)
5abb7fac8a is described below

commit 5abb7fac8a40a0c028e9bd7a1d08b318508596cb
Author: Daniel Roberts <[email protected]>
AuthorDate: Mon Aug 17 13:28:47 2026 -0400

    Update to the latest log4j version (#6499)
    
    Bumps versions and fixes deprecated builder pattern
---
 .../java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java   | 4 ++--
 pom.xml                                                               | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java 
b/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java
index a119601cf0..33f340a45f 100644
--- 
a/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java
+++ 
b/core/src/test/java/org/apache/accumulo/core/logging/EscalatingLoggerTest.java
@@ -48,8 +48,8 @@ public class EscalatingLoggerTest {
     // Programatically modify the Log4j2 Logging configuration to add an 
appender
     LoggerContext ctx = LoggerContext.getContext(false);
     Configuration cfg = ctx.getConfiguration();
-    PatternLayout layout = PatternLayout.newBuilder().withConfiguration(cfg)
-        .withPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build();
+    PatternLayout layout = PatternLayout.newBuilder().setConfiguration(cfg)
+        .setPattern(PatternLayout.SIMPLE_CONVERSION_PATTERN).build();
     Appender appender = WriterAppender.createAppender(layout, null, writer,
         "EscalatingLoggerTestAppender", false, true);
     appender.start();
diff --git a/pom.xml b/pom.xml
index 9df56e7e19..331e4ddbca 100644
--- a/pom.xml
+++ b/pom.xml
@@ -171,7 +171,7 @@ under the License.
     <version.curator>5.8.0</version.curator>
     <version.errorprone>2.41.0</version.errorprone>
     <version.hadoop>3.3.6</version.hadoop>
-    <version.log4j>2.25.4</version.log4j>
+    <version.log4j>2.26.1</version.log4j>
     <version.opentelemetry>1.48.0</version.opentelemetry>
     <version.powermock>2.0.9</version.powermock>
     <version.slf4j>2.0.17</version.slf4j>

Reply via email to