Return-Path: X-Original-To: apmail-logging-commits-archive@minotaur.apache.org Delivered-To: apmail-logging-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A83E5D099 for ; Mon, 10 Dec 2012 20:37:10 +0000 (UTC) Received: (qmail 21050 invoked by uid 500); 10 Dec 2012 20:37:10 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 21028 invoked by uid 500); 10 Dec 2012 20:37:10 -0000 Mailing-List: contact commits-help@logging.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@logging.apache.org Delivered-To: mailing list commits@logging.apache.org Received: (qmail 21021 invoked by uid 99); 10 Dec 2012 20:37:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 20:37:10 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2012 20:37:08 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 9BE16238897F; Mon, 10 Dec 2012 20:36:47 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1419741 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm Date: Mon, 10 Dec 2012 20:36:47 -0000 To: commits@logging.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121210203647.9BE16238897F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ggregory Date: Mon Dec 10 20:36:46 2012 New Revision: 1419741 URL: http://svn.apache.org/viewvc?rev=1419741&view=rev Log: [LOG4J2-134] Use %red, %white, %blue, and so on in the console appender. Add some documentation to the manual. Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm?rev=1419741&r1=1419740&r2=1419741&view=diff ============================================================================== --- logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm (original) +++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm Mon Dec 10 20:36:46 2012 @@ -707,6 +707,15 @@ WARN [main]: Message 2

+

For example: +

%style{%d{ISO8601}}{black} %style{[%t]}{blue} %style{%-5level:}{yellow} %style{%msg%n%throwable}{green}
+

+

You can also combine styles: +

%d %highlight{%p} %style{%logger}{bright,cyan} %C{1.} %msg%n
+

+

You can also use % with a color like %black, %blue, %cyan, and so on. For example: +

%black{%d{ISO8601}} %blue{[%t]} %yellow{%-5level:} %green{%msg%n%throwable}
+