From dfb4213f339188858579f0539531082586e0ea11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Mon, 20 Oct 2025 14:58:44 +0200 Subject: [PATCH] Stop using LoggerContext#start Closes gh-46035 --- .../boot/logging/log4j2/Log4J2LoggingSystem.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java b/core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java index bea63d57a73..95b25fb25e5 100644 --- a/core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java +++ b/core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java @@ -367,7 +367,7 @@ public class Log4J2LoggingSystem extends AbstractLoggingSystem { configurations.add(overrideConfiguration); } } - context.start(mergeConfigurations(configurations)); + context.reconfigure(mergeConfigurations(configurations)); } catch (Exception ex) { throw new IllegalStateException("Could not initialize Log4J2 logging from " + location, ex);