How do I set log4j level on the command line?

后端 未结 7 931
暖寄归人
暖寄归人 2020-12-24 10:27

I want to add some log.debug statements to a class I\'m working on, and I\'d like to see that in output when running the test. I\'d like to override the log4j properties on

7条回答
  •  無奈伤痛
    2020-12-24 11:02

    log4j does not support this directly.

    As you do not want a configuration file, you most likely use programmatic configuration. I would suggest that you look into scanning all the system properties, and explicitly program what you want based on this.

提交回复
热议问题