BOS Logistics Project ——— bos-web module Configuration Log4j.properties_ Logistics

Source: Internet
Author: User
Tags log4j

BOS Logistics Project 06bos-web module configuration log4jproperties One log4jproperties configuration two log4jproperties source location three log4j tutorial four source download

BOS Logistics Project ——— bos-web module Configuration log4j.properties One, log4j.properties configuration

### Direct log messages to stdout ###
Log4j.appender.stdout=org.apache.log4j.consoleappender
Log4j.appender.stdout.target=system.err
log4j.appender.stdout.layout=org.apache.log4j.patternlayout
Log4j.appender.stdout.layout.conversionpattern=%d{absolute}%5p%c{1}:%l-%m%n

### Direct messages to file MyLog.log ###
log4j.appender.file=org.apache.log4j.fileappender
log4j.appender.file.file=/volumes/ Wiming/log/bos.log
log4j.appender.file.layout=org.apache.log4j.patternlayout
Log4j.appender.file.layout.conversionpattern=%d{absolute}%5p%c{1}:%l-%m%n

### set log levels-for more verbose lo gging Change ' info ' to ' debug ' ###
### fatal error warn info debug trace
log4j.rootlogger=debug, stdout

Here's where the log is logged.

Log4j.appender.file.file=/volumes/wiming/log/bos.log

The following sentence represents the level and output of the log, which is debug level, standard output (console)

Log4j.rootlogger=debug, stdout
Second, log4j.properties source location

Https://github.com/wimingxxx/bos-parent/blob/master/bos-web/src/main/resources/log4j.properties Three, log4j tutorials

log4j Tutorial IV, source download

Https://github.com/wimingxxx/bos-parent

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.