Externalized the location of logback.xml in Spring Boot using application.properties

后端 未结 1 1510
广开言路
广开言路 2021-02-07 10:35

How can I customized the location of logback.xml in Spring Boot using application.properties?

I tried below but is not working.

application.properties



        
相关标签:
1条回答
  • 2021-02-07 11:13

    Below construct worked for me (but I used relative path instead of absolute):

    logging.config=file:/home/dev-01/Documents/logback.xml
    
    0 讨论(0)
提交回复
热议问题