Error: “setFile(null,false) call failed” when using log4j

前端 未结 10 666
感情败类
感情败类 2020-12-15 15:37

I have added log4j.properties file in source folder of project but I am still getting a log4j:error.

Here is my Log4j.properties file:

          


        
10条回答
  •  星月不相逢
    2020-12-15 16:31

    I had the exact same problem. Here is the solution that worked for me: simply put your properties file path in the cmd line this way :

    -Dlog4j.configuration=  (ex: log4j.properties)
    

    Hope this will help you

提交回复
热议问题