log4j:ERROR Failed to rename

前端 未结 2 770
借酒劲吻你
借酒劲吻你 2021-02-09 16:07

I get this error \"log4j:ERROR Failed to rename\" in my tomcat server log. I have multiple DailyRollingFileAppender in my log4j XML. And each appender points to different file.

相关标签:
2条回答
  • 2021-02-09 16:34

    It appears that if you're running windows this is a known bug:

    see here: http://do.whileloop.org/2014/02/14/log4j-rolling-file-appenders-in-windows/

    See here: https://issues.apache.org/bugzilla/show_bug.cgi?id=29726

    And also here: http://www.coderanch.com/t/424837/java/java/Log-log-file-rolled-day

    0 讨论(0)
  • 2021-02-09 16:35

    I had the same issue and fixed it by updating log4j to version 1.2.15 as per this discussion

    0 讨论(0)
提交回复
热议问题