logback externalization

前端 未结 5 1293
庸人自扰
庸人自扰 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-08 00:09

    If you just want to change the log level you don't need to override the whole file, you can do this:

    
    

    Then if you set the system property:

    -Dlog.level=DEBUG
    

    It will override the default of 'INFO'.

提交回复
热议问题