你的位置:首页 > 软件开发 > Java > log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016

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

发布时间:2016-11-24 10:00:14
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 ...

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。 


 

海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com

原标题:log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录