Unable to use Spring Property Placeholders in logback.xml

后端 未结 5 1431
有刺的猬
有刺的猬 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:39

    Since Spring Boot 1.3 you have a better way of getting spring properties into your logback-spring.xml configuration:

    Now you can just add a "springProperty" element.

    
    
        ${destination}
            ...
        
    
    

    https://github.com/spring-projects/spring-boot/commit/055ace37f006120b0006956b03c7f358d5f3729f

    edit: thanks to Anders

    .........

提交回复
热议问题