Log4j.appender.stdout.layout.ConversionPattern

Source: Internet
Author: User

http://501565246-qq-com.iteye.com/blog/1991881

Http://wenku.baidu.com/link?url=e4Z9v9CY_gwRxHrggzHXxhb_ C6zrdgm9u0tz7qhm1s6r3ryihb9guqnrtidpl5gz74x-olkd-lq6y33bhap_jabxz4vo6wpsszphjymfjde

%M the message specified in the output code

%p output priority, i.e. Debug,info,warn,error,fatal

%r output the number of milliseconds that the log information is consumed from the application boot to output

%c is the tectonic parameter of constructing logger;

%c is a full-class name;

%t output The name of the thread that generated the log event? Consistent with the method name?

%n output a carriage return newline character, Windows platform is "RN", UNIX platform is "n"

%d the date or time of the output log time, the default format is ISO8601, can also be specified after the format, such as:%d{yyyy MMM dd hh:mm:ss,sss}, output similar: October 18, 2002 22:10:28,921

%l where the output log event occurs, including the class name, the thread that occurred, and the number of rows in the code. Equivalent to%c%m (%f:%l)
%M method name?;

%F file name


[QC] is the beginning of the log information, can be any character, generally referred to as the project abbreviation.

Log4j.appender.stdout.layout.ConversionPattern

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.