This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch 2.x
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/2.x by this push:
new 2ecc51eb6e Fix capitalization in XML examples
2ecc51eb6e is described below
commit 2ecc51eb6ee048f65da67ad2ac626b99484c83db
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Wed May 29 09:06:29 2024 +0200
Fix capitalization in XML examples
---
.../ROOT/examples/manual/configuration/mixed-async.xml | 2 +-
.../modules/ROOT/examples/manual/markers/log4j2.xml | 17 +++++++----------
2 files changed, 8 insertions(+), 11 deletions(-)
diff --git
a/src/site/antora/modules/ROOT/examples/manual/configuration/mixed-async.xml
b/src/site/antora/modules/ROOT/examples/manual/configuration/mixed-async.xml
index d0ac5d22a5..ddb81a468f 100644
--- a/src/site/antora/modules/ROOT/examples/manual/configuration/mixed-async.xml
+++ b/src/site/antora/modules/ROOT/examples/manual/configuration/mixed-async.xml
@@ -31,7 +31,7 @@
<Loggers>
<Root level="INFO">
<AppenderRef ref="AUDIT"> <!--1-->
- <MarkerFilter marker="AUDIT" onMatch="ACCEPT" onMimatch="DENY"/>
+ <MarkerFilter marker="AUDIT" onMatch="ACCEPT" onMismatch="DENY"/>
</AppenderRef>
</Root>
<AsyncLogger name="com.example" level="TRACE">
diff --git a/src/site/antora/modules/ROOT/examples/manual/markers/log4j2.xml
b/src/site/antora/modules/ROOT/examples/manual/markers/log4j2.xml
index d9f7094ae7..00a2a7e9b0 100644
--- a/src/site/antora/modules/ROOT/examples/manual/markers/log4j2.xml
+++ b/src/site/antora/modules/ROOT/examples/manual/markers/log4j2.xml
@@ -20,24 +20,21 @@
xsi:schemaLocation="
https://logging.apache.org/xml/ns
https://logging.apache.org/xml/ns/log4j-config-2.xsd">
-
- <appenders>
+ <Appenders>
<Console name="SQL_LOG">
<PatternLayout pattern="%d{HH:mm:ss.SSS} (%marker) %m%n"/>
</Console>
- </appenders>
-
- <loggers>
- <root level="INFO"/>
+ </Appenders>
+ <Loggers>
+ <Root level="INFO"/>
<!-- tag::logger[] -->
- <logger name="example" level="ALL"><!--1-->
+ <Logger name="example" level="ALL"><!--1-->
<AppenderRef ref="SQL_LOG">
<MarkerFilter marker="SQL"
onMatch="ACCEPT"
onMismatch="DENY"/><!--2-->
</AppenderRef>
- </logger>
+ </Logger>
<!-- end::logger[] -->
- </loggers>
-
+ </Loggers>
</Configuration>