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

前端 未结 10 664
感情败类
感情败类 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:12

    Have a look at the error - 'log4j:ERROR setFile(null,false) call failed. java.io.FileNotFoundException: logs (Access is denied)'

    It seems there's a log file named as 'logs' to which access is denied i.e it is not having sufficient permissions to write logs. Try by giving write permissions to the 'logs' log file. Hope it helps.

提交回复
热议问题