A log4j log renderer was found (Datedfileappender)

Source: Internet
Author: User
Tags log4j

A new Appender:biz.minaret.log4j.DatedFileAppender was found today on the official website of log4j.

This is an output to a date-named file, the Appender will be integrated in the log4j1.3 later version, for a long time did not study the log4j, found some new things

Specific configuration items:

Log4j.appender.datedfile=biz.minaret.log4j.datedfileappender
Log4j.appender.datedfile.layout=org.apache.log4j.patternlayout
log4j.appender.datedfile.layout.conversionpattern=%d [%t]%-5p%c-%m%n
Log4j.appender.datedfile.directory=logs
Log4j.appender.datedfile.prefix=tomcat.
Log4j.appender.datedfile.suffix=.log
Log4j.appender.datedfile.append=true
Log4j.appender.datedfile.bufferedio=false
log4j.appender.datedfile.buffersize=8192

There is also a appender:log4j jdbcappender input to the database (http://www.mannhaupt.com/danko/projects/index.html)

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.