Reputation: 917
According to the docs Spring Boot should use logback-spring.xml
to configure logging (allowing the use of properties), but a file of that name isn't picked up when my application starts.
I don't have logging explicity configured in my POM, but spring-boot-starter-logging
v1.2.6 is pulled in via spring-boot-starter-web
.
Any ideas why this? logback.xml
is pulled in fine though.
Thanks
Nick
Upvotes: 0
Views: 643
Reputation: 116031
You're reading the documentation for the yet-to-be-released Spring Boot 1.3, but you're using Spring Boot 1.2.6. Support for logback-spring.xml
is new in Spring Boot 1.3 which is why it doesn't work with 1.2.6.
You might like to try the latest milestone of 1.3, 1.3.0.M5, which is available from https://repo.spring.io/libs-milestone.
Upvotes: 4