Unable to use Spring Property Placeholders in logback.xml

后端 未结 5 1441
有刺的猬
有刺的猬 2020-12-04 22:08

I have a Spring Boot console app using Logback. All of the properties (for the app as well as for Logback) are externalized into a standard application.properties file in th

5条回答
  •  不知归路
    2020-12-04 22:37

    As answered above you can access the spring boot properties using the element...but a thing to keep in mind is that the logback configuration file must be named logback-spring.xml, it doesn't work if you name the file logback.xml (I'm using spring-boot 1.3.5.RELEASE)

提交回复
热议问题