diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java index ec9627dcc5..b87ab0add1 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java @@ -343,7 +343,7 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem { @Order(Ordered.LOWEST_PRECEDENCE) public static class Factory implements LoggingSystemFactory { - private static final boolean PRESENT = ClassUtils.isPresent("ch.qos.logback.core.Appender", + private static final boolean PRESENT = ClassUtils.isPresent("ch.qos.logback.classic.LoggerContext", Factory.class.getClassLoader()); @Override