log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016-11-23.log],log4jxxx.log

來源:互聯網
上載者:User

log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016-11-23.log],log4jxxx.log

Log4j報錯:

log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016-11-23.log]

google了一下發現是個bug:

https://bz.apache.org/bugzilla/show_bug.cgi?id=29726

I checked myself, and found it was solved only in 1.3 for DRFA.For RFA, it has been solved in 1.2.15 too (see bug 41735).On another hand, now 1.3 has been abandoned. But itso.a.l.rolling.RollingFileAppender, that solved the problem,is available in companions / extras, which release 1.0 hasbeen recently released.Please note that, though RFA and DRFA are deprecated in favoror o.a.l.rolling.RFA in 1.3, they are not deprecated in 1.2.15.

解決方案:升級log4j: 1.2.14到1.2.15。

發現另一個項目使用的是1.2.17 ,沒有這個問題,應該從 1.2.15之後都fix了這個bug。 

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.