Spring boot logback-spring.xml不适用于spring boot 1.4.2

Spring boot logback-spring.xml不适用于spring boot 1.4.2,spring-boot,Spring Boot,当我将logback.xml的名称更改为logback-spring.xml时,我正在将logback 1.1.8与spring boot 1.4.2一起使用。应用程序停止日志记录。当我使用logback.xml时,我不能使用springProfiles标记 15:55:23459 |-输入错误 ch.qos.logback.core.joran.spi。Interpreter@153:46-不适用 [appender ref]的操作,当前元素路径为 [configuration][spring

当我将logback.xml的名称更改为logback-spring.xml时,我正在将logback 1.1.8与spring boot 1.4.2一起使用。应用程序停止日志记录。当我使用logback.xml时,我不能使用springProfiles标记

15:55:23459 |-输入错误 ch.qos.logback.core.joran.spi。Interpreter@153:46-不适用 [appender ref]的操作,当前元素路径为 [configuration][springProfile][root][appender ref]]15:55:23459 |-ch.qos.logback.core.joran.spi中存在错误。Interpreter@154:46-否 [appender ref]的适用操作,当前元素路径为 [configuration][springProfile][root][appender ref]]15:55:23460 |-ch.qos.logback.core.joran.spi中存在错误。Interpreter@158:36-否 [springProfile]的适用操作,当前元素路径为 [[configuration][springProfile]]


请建议是否有人面临此问题?

Spring boot尝试从类路径加载logback.xml,在我的情况下,虽然我已将logback.xml替换为logback-Spring.xml,但它正在读取logback.xml,调试时发现classpath中的一个库提供了logback.xml,导致此问题

欢迎使用堆栈溢出!请参观,环顾四周,阅读帮助中心,特别是我如何提出一个好问题?我在这里可以问些什么话题?从第二个链接开始:“要求家庭作业帮助的问题必须包括到目前为止你为解决问题所做的工作的摘要,以及对你解决问题的困难的描述。”你还必须以文本而不是图像的形式提供你的问题。那么你是如何解决这个问题的呢?您是否删除了完整的依赖项,或者是否有方法配置spring以使用特定的logback配置文件?在我的例子中,它是一个内部库,所以我必须修复它的pom,以便在spring能够提取正确的文件后,在最终工件中不包含logback.xml