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

Source: Internet
Author: User

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

Log4j error:

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

Google found a 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 PGA, 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 PGA and DRFA are deprecated in favoror o. a. l. rolling. RFID in 1.3, they are not deprecated in 1.2.15.

Solution: Upgrade log4j from 1.2.14 to 1.2.15.

I found that another project uses 1.2.17. If this problem is not found, the bug should be fixed after 1.2.15.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.