From 71826708a4301f95282847a1f04f40bfd9071361 Mon Sep 17 00:00:00 2001 From: Huang YunKun Date: Fri, 4 Nov 2016 21:48:32 +0800 Subject: [PATCH] Upgrade to Log4j 2.7 Closes gh-7323 --- spring-boot-dependencies/pom.xml | 2 +- .../boot/logging/log4j2/Log4J2LoggingSystem.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-dependencies/pom.xml b/spring-boot-dependencies/pom.xml index 0714a8c297..ed8d0da200 100644 --- a/spring-boot-dependencies/pom.xml +++ b/spring-boot-dependencies/pom.xml @@ -124,7 +124,7 @@ 1.3.1 4.12 3.5.3 - 2.6.2 + 2.7 1.1.7 1.16.10 1.4.6 diff --git a/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java b/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java index 999daf16cb..bfca2884d1 100644 --- a/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java +++ b/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java @@ -176,7 +176,7 @@ public class Log4J2LoggingSystem extends Slf4JLoggingSystem { LoggerContext ctx = getLoggerContext(); URL url = ResourceUtils.getURL(location); ConfigurationSource source = getConfigurationSource(url); - ctx.start(ConfigurationFactory.getInstance().getConfiguration(source)); + ctx.start(ConfigurationFactory.getInstance().getConfiguration(ctx, source)); } catch (Exception ex) { throw new IllegalStateException(