Logging level under maven surefire

前端 未结 4 1185
感情败类
感情败类 2020-12-06 09:31

I\'m unable to adjust java logging\'s logging level. I\'m using maven surefire (mvn test), and trying to adjust from the default INFO to e.g. FINEST.

I have logging.

4条回答
  •  广开言路
    2020-12-06 09:55

    try

    ${build.testOutputDirectory}/logging.properties
    

    Also, I specify this stuff on the command line with surfire-args.

    ${surefire.argLine} ${argLine} -Djava.util.logging.config.file=${build.testOutputDirectory}/logging.properties
    

提交回复
热议问题