Reputation: 1
I am using logback 1.1.8 with spring boot 1.4.2 as soon as I change the name of logback.xml to logback-spring.xml application stops logging. And when I use logback.xml, I cannot use the springProfiles tags.
15:55:23,459 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@153:46 - no applicable action for [appender-ref], current ElementPath is [[configuration][springProfile][root][appender-ref]] 15:55:23,459 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@154:46 - no applicable action for [appender-ref], current ElementPath is [[configuration][springProfile][root][appender-ref]] 15:55:23,460 |-ERROR in ch.qos.logback.core.joran.spi.Interpreter@158:36 - no applicable action for [springProfile], current ElementPath is [[configuration][springProfile]]
Please, suggest if this issue is faced by anyone?
Upvotes: 0
Views: 2530
Reputation: 1
Spring boot tries to load the logback.xml from classpath, In my case, though I have replaced logback.xml with logback-spring.xml it was reading logback.xml, on debugging found that one of the libraries in classpath is providing the logback.xml causing this issue
Upvotes: 0