logback externalization

前端 未结 5 1236
庸人自扰
庸人自扰 2021-02-07 23:26

Currently I have logback configuration file i.e logback.xml which is src/main/resources. I want to set the logging level but i want control outside of

5条回答
  •  忘了有多久
    2021-02-07 23:51

    I suggest you use 2 logback configuration files. The first one in the classpath defined as:

    
        
        
    
    

    and you put all the configuration in the other one. Logback will scan both files for updates.

提交回复
热议问题