No log4j2 configuration file found. Using default configuration: logging only errors to the console

前端 未结 15 1150
情深已故
情深已故 2020-12-04 22:59
$ java -Dlog4j.configuration=file:///path/to/your/log4j2.xml -jar /path/to/your/jar_file.jar

Written to the console, you get

ERROR          


        
15条回答
  •  情书的邮戳
    2020-12-04 23:44

    Make sure that you have put a log4j2.* file instead of a log4j.* file under .../src/main/resources folder.

提交回复
热议问题