Browse Source

Stop using LoggerContext#start

Closes gh-46035
pull/47720/head
Stéphane Nicoll 2 months ago
parent
commit
dfb4213f33
  1. 2
      core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java

2
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); configurations.add(overrideConfiguration);
} }
} }
context.start(mergeConfigurations(configurations)); context.reconfigure(mergeConfigurations(configurations));
} }
catch (Exception ex) { catch (Exception ex) {
throw new IllegalStateException("Could not initialize Log4J2 logging from " + location, ex); throw new IllegalStateException("Could not initialize Log4J2 logging from " + location, ex);

Loading…
Cancel
Save