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 5073E105DA for ; Tue, 3 Sep 2013 16:19:03 +0000 (UTC) Received: (qmail 23311 invoked by uid 500); 3 Sep 2013 16:19:03 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 22536 invoked by uid 500); 3 Sep 2013 16:18:58 -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 21812 invoked by uid 99); 3 Sep 2013 16:18:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Sep 2013 16:18:58 +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; Tue, 03 Sep 2013 16:18:55 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id B6619238890D; Tue, 3 Sep 2013 16:18:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1519744 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/layouts.xml.vm Date: Tue, 03 Sep 2013 16:18:23 -0000 To: commits@logging.apache.org From: ggregory@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20130903161823.B6619238890D@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: ggregory Date: Tue Sep 3 16:18:22 2013 New Revision: 1519744 URL: http://svn.apache.org/r1519744 Log: Better docs for levels. 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=1519744&r1=1519743&r2=1519744&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 Tue Sep 3 16:18:22 2013 @@ -681,9 +681,21 @@ WARN [main]: Message 2 p{level name mapping}
level{level name mapping} - Outputs the level of the logging event. A level name mapping map be provided in the form - "level=value, level=value" where level is the name of the Level and value is the value that - should be displayed instead of the name of the Level. + +

+ Outputs the level of the logging event. A level name mapping map be provided in the form + "level=value, level=value" where level is the name of the Level and value is the value that + should be displayed instead of the name of the Level. +

+

+ For example: +

level{WARN=Warning, DEBUG=Debug, ERROR=Error, TRACE=Trace, INFO=Info}
+

+

+ Alternatively, for the compact-minded: +

level{WARN=W, DEBUG=D, ERROR=E, TRACE=T, INFO=I}
+

+