Run Logback in Debug

前端 未结 5 1133
不思量自难忘°
不思量自难忘° 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条回答
  •  萌比男神i
    2020-12-16 09:37

    In eclipse you can have multiple run configurations. Open your main class. Go to Debug dropdown on eclipse toolbar and select Debug configurations. Click the New launch configuration icon at the top left. Give your launch configuration a better name. Click the Arguments tab under the name and enter -Dlog.level=debug or whatever you want. Click Close or Debug

    You can do this again and specify -Dlog.level=warn for example.

提交回复
热议问题