星空网 > 软件开发 > Java

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

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。 




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

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流