Run Logback in Debug

前端 未结 5 1130
不思量自难忘°
不思量自难忘° 2020-12-16 09:13

I\'ve recently switched from log4j to logback and am wondering if there is an easy way to run logback in debug mode, similar to log4j\'s log4j.debug property. I

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 09:52

    You can set the status listener class via system property:

    java -Dlogback.statusListenerClass=ch.qos.logback.core.status.OnConsoleStatusListener ...
    

    See: Logback manual

提交回复
热议问题