Log4j configuration entry-log4j configuration Template

Source: Internet
Author: User
Log4j template # log4j. rootlogger = debug, file
Log4j. rootlogger = info, stdout, file
### Direct log messages to stdout ###
Log4j. appender. stdout = org. Apache. log4j. leleappender
Log4j. appender. stdout. Target = system. Out
Log4j. appender. stdout. layout = org. Apache. log4j. patternlayout
Log4j. appender. stdout. layout. conversionpattern = % d {absolute} % 5 P % C: % L-% m % N # direct messages to file toptais. log ###
Log4j. appender. File = org. Apache. log4j. rollingfileappender
Log4j. appender. file. maxfilesize = 10 MB
Log4j. appender. file. maxbackupindex = 10
Log4j. appender. file. File = project. Log
Log4j. appender. file. layout = org. Apache. log4j. patternlayout
Log4j. appender. file. layout. conversionpattern = % d %-5 p [% T] (% 13f: % L) % 3x-% m % N
 
### Log prepared statement cache activity ###
Log4j.logger.org. hibernate = Error
Log4j.logger.com. topsoft = Error
Log4j.logger.org. Apache = Error
Log4j.logger.net. Sf = Error
# Log4j. Logger. Data = info
# Log4j. Logger. commondata = info

 

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.