This is an automated email from the ASF dual-hosted git repository.

rgoers pushed a commit to branch release-2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/release-2.x by this push:
     new dc9ee94  Update doc to match PR#450
dc9ee94 is described below

commit dc9ee94e47cdf0cb05ad8838d21f368b6ab79afe
Author: Ralph Goers <[email protected]>
AuthorDate: Sat Feb 6 18:18:02 2021 -0700

    Update doc to match PR#450
---
 log4j-spring-cloud-config/pom.xml         |  5 -----
 src/site/xdoc/manual/configuration.xml.vm | 10 ++++++++++
 2 files changed, 10 insertions(+), 5 deletions(-)

diff --git a/log4j-spring-cloud-config/pom.xml 
b/log4j-spring-cloud-config/pom.xml
index c28ad39..38f462a 100644
--- a/log4j-spring-cloud-config/pom.xml
+++ b/log4j-spring-cloud-config/pom.xml
@@ -58,11 +58,6 @@
         <type>pom</type>
         <scope>import</scope>
       </dependency>
-      <dependency>
-        <groupId>junit</groupId>
-        <artifactId>junit</artifactId>
-        <scope>test</scope>
-      </dependency>
     </dependencies>
   </dependencyManagement>
   <modules>
diff --git a/src/site/xdoc/manual/configuration.xml.vm 
b/src/site/xdoc/manual/configuration.xml.vm
index 956972d..72272c4 100644
--- a/src/site/xdoc/manual/configuration.xml.vm
+++ b/src/site/xdoc/manual/configuration.xml.vm
@@ -1094,6 +1094,16 @@ rootLogger.appenderRef.stdout.ref = STDOUT
             <code>app.properties</code> would be used as the default value.
           </p>
         </subsection>
+        <a name="DisablingMessagePatternLookups"/>
+        <subsection name="Disables Message Pattern Lookups">
+        <p>
+          A message is processed (by default) by lookups, for example if you 
defined
+          <code> &lt;Property name="foo.bar">FOO_BAR &lt;/Property></code>, 
then <code>logger.info("${foo.bar}")</code>
+          will output <code>FOO_BAR</code> instead of 
<code>${dollar}{foo.bar}</code>. You could disable message pattern
+          lookups globally by setting system property 
<code>log4j2.formatMsgNoLookups</code> to true,
+          or defining message pattern using %m{nolookups}.
+        </p>
+        </subsection>
         <a name="RuntimeLookup"/>
         <subsection name="Lookup Variables with Multiple Leading '$' 
Characters">
           <p>

Reply via email to