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 0C3BBDA25 for ; Wed, 31 Oct 2012 15:32:36 +0000 (UTC) Received: (qmail 87429 invoked by uid 500); 31 Oct 2012 15:32:35 -0000 Delivered-To: apmail-logging-commits-archive@logging.apache.org Received: (qmail 87352 invoked by uid 500); 31 Oct 2012 15:32:34 -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 87341 invoked by uid 99); 31 Oct 2012 15:32:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Oct 2012 15:32:34 +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; Wed, 31 Oct 2012 15:32:32 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id ADF1323888E4; Wed, 31 Oct 2012 15:31:49 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1404206 - /logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml Date: Wed, 31 Oct 2012 15:31:49 -0000 To: commits@logging.apache.org From: rgoers@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20121031153149.ADF1323888E4@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: rgoers Date: Wed Oct 31 15:31:49 2012 New Revision: 1404206 URL: http://svn.apache.org/viewvc?rev=1404206&view=rev Log: Fix documentation types Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml Modified: logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml?rev=1404206&r1=1404205&r2=1404206&view=diff ============================================================================== --- logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml (original) +++ logging/log4j/log4j2/trunk/src/site/xdoc/manual/configuration.xml Wed Oct 31 15:31:49 2012 @@ -60,11 +60,11 @@
  • Log4j will inspect the "log4j.configurationFile" system property and, if set, will attempt to load the configuration using the ConfigurationFactory that matches the file extension.
  • -
  • If no system property is set the JSON ConfigurationFactory will look for log4j-test.json or - log4j-test.jsn in the classpath.
  • +
  • If no system property is set the JSON ConfigurationFactory will look for log4j2-test.json or + log4j2-test.jsn in the classpath.
  • If no such file is found the XML ConfigurationFactory will look for log4j2-test.xml in the classpath.
  • -
  • If a test file cannot be located the JSON ConfigurationFactory will look for log4j.json or log4j.jsn +
  • If a test file cannot be located the JSON ConfigurationFactory will look for log4j2.json or log4j2.jsn on the classpath.
  • If a JSON file cannot be located the XML ConfigurationFactory will try to locate log4j2.xml on the classpath.
  • @@ -154,7 +154,7 @@ ]]> - Once the file above is placed into the classpath as log4j.xml you will get results identical to + Once the file above is placed into the classpath as log4j2.xml you will get results identical to those listed above. Changing the root level to trace will result in results similar to: 17:13:01.540 [main] TRACE MyApp - Entering application. @@ -924,8 +924,8 @@

    Maven can run unit and functional tests during the build cycle. By default, any files placed in src/test/resources are automatically copied to target/test-classes and are included - in the classpath during execution of any tests. As such, placing a log4j-test.xml into this directory - will cause it to be used instead of a log4j.xml or log4j.json that might be present. Thus a different + in the classpath during execution of any tests. As such, placing a log4j2-test.xml into this directory + will cause it to be used instead of a log4j2.xml or log4j2.json that might be present. Thus a different log configuration can be used during testing than what is used in production.