log4j:ERROR Failed to rename [/log/xxx.log] to [/log/xxx.log.2016-11-23.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 its
o.a.l.rolling.RollingFileAppender, that solved the problem,
is available in companions / extras, which release 1.0 has
been recently released. Please note that, though RFA and DRFA are deprecated in favor
or 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。

上一篇:使用 JavaScript 的 HTML 页面混合、JavaScript 文件引用和 HTML 代码嵌入 3 种方式在 HTML 页面上打印出“点击我进入到百度首页”的超链接


下一篇:服务器文档下载zip格式 SQL Server SQL分页查询 C#过滤html标签 EF 延时加载与死锁 在JS方法中返回多个值的三种方法(转载) IEnumerable,ICollection,IList接口问题 不吹不擂,你想要的Python面试都在这里了【315+道题】 基于mvc三层架构和ajax技术实现最简单的文件上传 事件管理