Disabling Log4J logs during maven test phase

前端 未结 3 1030
醉酒成梦
醉酒成梦 2021-01-03 22:04

Trace and debug logs can be helpful while doing development in the IDE, but during the build I find those lines quite disturbing, and obfuscating the report printed out by m

3条回答
  •  礼貌的吻别
    2021-01-03 22:35

    Specify a test log4j configuration file with no appender.

    For example if you have a log4j.properties in src/main/resources, then copy it to src/test/resouces and either remove the appender or set the log level to fatal.

提交回复
热议问题