You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gi...@apache.org on 2024/05/28 13:19:47 UTC

(logging-log4j2) branch main-site-stg-out updated: Add website content generated from `9c2a359768cacae0f03fb9c201cc0a64339abb06`

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

github-bot pushed a commit to branch main-site-stg-out
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git


The following commit(s) were added to refs/heads/main-site-stg-out by this push:
     new b79ff7a959 Add website content generated from `9c2a359768cacae0f03fb9c201cc0a64339abb06`
b79ff7a959 is described below

commit b79ff7a959eff16fb7576c322ae47836e612c3ea
Author: ASF Logging Services RM <pr...@logging.apache.org>
AuthorDate: Tue May 28 13:19:43 2024 +0000

    Add website content generated from `9c2a359768cacae0f03fb9c201cc0a64339abb06`
---
 manual/appenders.html     |  264 +--
 manual/configuration.html | 3995 +++++++++++++++++++++++++--------------------
 manual/installation.html  |   70 +-
 manual/scripts.html       |   66 +-
 sitemap.xml               |   92 +-
 5 files changed, 2421 insertions(+), 2066 deletions(-)

diff --git a/manual/appenders.html b/manual/appenders.html
index 0bea5c2ccd..ba3c13bd43 100644
--- a/manual/appenders.html
+++ b/manual/appenders.html
@@ -510,9 +510,9 @@ documentation</a> for more details.</p></td>
 <div class="paragraph">
 <p>There are also a few system properties that can be used to maintain application throughput even when the underlying appender cannot keep up with the logging rate and the queue is filling up.
 See the details for system properties
-<a href="systemproperties.html#log4j2.asyncQueueFullPolicy" class="xref page"><code>log4j2.asyncQueueFullPolicy</code></a>
+<a href="systemproperties.html#log4j.async.queueFullPolicy.type" class="xref page"><code>log4j.async.queueFullPolicy.type</code></a>
 and
-<a href="systemproperties.html#log4j2.discardThreshold" class="xref page"><code>log4j2.DiscardThreshold</code></a>.</p>
+<a href="systemproperties.html#log4j.async.queueFullPolicy.discardThreshold" class="xref page"><code>log4j.async.queueFullPolicy.discardThreshold</code></a>.</p>
 </div>
 <div class="paragraph">
 <p>A typical AsyncAppender configuration might look like this:</p>
@@ -611,176 +611,6 @@ maximum capacity.</p></td>
 </div>
 </div>
 <div class="sect1">
-<h2 id="CassandraAppender"><a class="anchor" href="#CassandraAppender"></a>CassandraAppender</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>The CassandraAppender writes its output to an <a href="https://cassandra.apache.org/">Apache Cassandra</a>
-database.
-A keyspace and table must be configured ahead of time, and the columns of that table are mapped in a configuration file.
-Each column can specify either a <a href="https://logging.apache.org/log4j/2.x/manual/layouts.html#PatternLayout">StringLayout</a> (e.g., a PatternLayout) along with an optional conversion type, or only a conversion type for <code>org.apache.logging.log4j.spi.ThreadContextMap</code> or
-<code>org.apache.logging.log4j.spi.ThreadContextStack</code> to store the MDC or NDC in a map or list column respectively.
-A conversion type compatible with <code>java.util.Date</code> will use the log event timestamp converted to that type (e.g., use <code>java.util.Date</code> to fill a
-<code>timestamp</code> column type in Cassandra).</p>
-</div>
-<table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 3. CassandraAppender Parameters</caption>
-<colgroup>
-<col style="width: 20%;">
-<col style="width: 20%;">
-<col style="width: 60%;">
-</colgroup>
-<thead>
-<tr>
-<th class="tableblock halign-left valign-top">Parameter Name</th>
-<th class="tableblock halign-left valign-top">Type</th>
-<th class="tableblock halign-left valign-top">Description</th>
-</tr>
-</thead>
-<tbody>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">batched</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Whether or not to use batch statements to write log messages to Cassandra. By default, this is <code>false</code>.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">batchType</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="https://docs.datastax.com/en/drivers/java/3.0/com/datastax/driver/core/BatchStatement.Type.html">BatchStatement.Type</a></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The batch type to use when using batched writes. By default, this is <code>LOGGED</code>.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">bufferSize</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">int</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The number of log messages to buffer or batch before writing. By default, no buffering is done.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">clusterName</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">String</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The name of the Cassandra cluster to connect to.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">columns</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">ColumnMapping[]</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A list of column mapping configurations. Each column must specify a column name. Each column can
-have a conversion type specified by its fully qualified class name. By default, the conversion type is
-<code>String</code>. If the configured type is assignment-compatible with
-ReadOnlyStringMap /
-ThreadContextMap or
-ThreadContextStack,
-then that column will be populated with the MDC or NDC respectively. If the configured type is
-assignment-compatible with <code>java.util.Date</code>, then the log timestamp will be converted to
-that configured date type. If a <code>literal</code> attribute is given, then its value will be used as
-is in the <code>INSERT</code> query without any escaping. Otherwise, the layout or pattern specified
-will be converted into the configured type and stored in that column.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">contactPoints</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">SocketAddress[]</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A list of hosts and ports of Cassandra nodes to connect to. These must be valid hostnames or IP
-addresses. By default, if a port is not specified for a host or it is set to 0, then the default
-Cassandra port of 9042 will be used. By default, <code>localhost:9042</code> will be used.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">filter</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Filter</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A Filter to determine if the event should be handled by this Appender. More than one Filter may be used
-by using a CompositeFilter.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">ignoreExceptions</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The default is <code>true</code>, causing exceptions encountered while appending events to be
-internally logged and then ignored. When set to <code>false</code> exceptions will be propagated to the
-caller, instead. You must set this to <code>false</code> when wrapping this Appender in a
-FailoverAppender.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">keyspace</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">String</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The name of the keyspace containing the table that log messages will be written to.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">name</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">String</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The name of the Appender.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">password</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">String</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The password to use (along with the username) to connect to Cassandra.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">table</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">String</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The name of the table to write log messages to.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">useClockForTimestampGenerator</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Whether or not to use the configured <code>org.apache.logging.log4j.core.util.Clock</code> as a
-TimestampGenerator. By default, this is <code>false</code>.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">username</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">String</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">The username to use to connect to Cassandra. By default, no username or password is used.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock">useTls</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">boolean</p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Whether or not to use TLS/SSL to connect to Cassandra. This is <code>false</code> by default.</p></td>
-</tr>
-</tbody>
-</table>
-<div class="paragraph">
-<p>Here is an example <code>CassandraAppender</code> configuration:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Configuration name="CassandraAppenderTest"&gt;
-  &lt;Appenders&gt;
-    &lt;Cassandra name="Cassandra" clusterName="Test Cluster" keyspace="test" table="logs" bufferSize="10" batched="true"&gt;
-      &lt;SocketAddress host="localhost" port="9042"/&gt;
-      &lt;ColumnMapping name="id" pattern="%uuid{TIME}" type="java.util.UUID"/&gt;
-      &lt;ColumnMapping name="timeid" literal="now()"/&gt;
-      &lt;ColumnMapping name="message" pattern="%message"/&gt;
-      &lt;ColumnMapping name="level" pattern="%level"/&gt;
-      &lt;ColumnMapping name="marker" pattern="%marker"/&gt;
-      &lt;ColumnMapping name="logger" pattern="%logger"/&gt;
-      &lt;ColumnMapping name="timestamp" type="java.util.Date"/&gt;
-      &lt;ColumnMapping name="mdc" type="org.apache.logging.log4j.spi.ThreadContextMap"/&gt;
-      &lt;ColumnMapping name="ndc" type="org.apache.logging.log4j.spi.ThreadContextStack"/&gt;
-    &lt;/Cassandra&gt;
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="org.apache.logging.log4j.cassandra" level="DEBUG"&gt;
-      &lt;AppenderRef ref="Cassandra"/&gt;
-    &lt;/Logger&gt;
-    &lt;Root level="ERROR"/&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>This example configuration uses the following table schema:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-sql hljs" data-lang="sql">CREATE TABLE logs (
-    id timeuuid PRIMARY KEY,
-    timeid timeuuid,
-    message text,
-    level text,
-    marker text,
-    logger text,
-    timestamp timestamp,
-    mdc map&lt;text,text&gt;,
-    ndc list&lt;text&gt;
-);</code></pre>
-</div>
-</div>
-</div>
-</div>
-<div class="sect1">
 <h2 id="consoleappender"><a class="anchor" href="#consoleappender"></a><a id="ConsoleAppender"></a> ConsoleAppender</h2>
 <div class="sectionbody">
 <div class="paragraph">
@@ -789,7 +619,7 @@ TimestampGenerator. By default, this is <code>false</code>.</p></td>
 A Layout must be provided to format the LogEvent.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 4. ConsoleAppender Parameters</caption>
+<caption class="title">Table 3. ConsoleAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -888,7 +718,7 @@ Appender in a <a href="#FailoverAppender">FailoverAppender</a>.</p></td>
 If the primary Appender fails the secondary appenders will be tried in order until one succeeds or there are no more secondaries to try.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 5. FailoverAppender Parameters</caption>
+<caption class="title">Table 4. FailoverAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -990,7 +820,7 @@ While FileAppenders from different Configurations cannot be shared, the FileMana
 For example, two web applications in a servlet container can have their configuration and safely write to the same file if Log4j is in a ClassLoader that is common to both of them.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 6. FileAppender Parameters</caption>
+<caption class="title">Table 5. FileAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1209,7 +1039,7 @@ Setting the "type" attribute to "Embedded" will force the use of the embedded ag
 In addition, configuring agent properties in the appender configuration will also cause the embedded agent to be used.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 7. FlumeAppender Parameters</caption>
+<caption class="title">Table 6. FlumeAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1517,8 +1347,10 @@ indicate which variation of the Appender is desired.</p></td>
 <code>log4j-core</code> to the new module <code>log4j-jdbc</code>.</p>
 </div>
 <div class="paragraph">
-<p>The JDBC Appender configured with a <code>DataSource</code> requires JNDI support so as of release 2.17.1 this appender will not function unless <code>log4j2.enableJndiJdbc=true</code> is configured as a system property or environment variable.
-See the <a href="configuration.html#enableJndiJdbc" class="xref page">enableJndiJdbc</a> system property.</p>
+<p>The JDBC Appender configured with a <code>DataSource</code> requires JNDI support so as of release 2.17.1
+this appender will not function unless <code>log4j.jndi.enableJdbc=true</code> is configured as a system property
+or environment variable. See the <a href="systemproperties.html#log4j.jndi.enableJdbc" class="xref page">log4j.jndi.enableJdbc</a> system
+property.</p>
 </div>
 <div class="paragraph">
 <p>The JDBCAppender writes log events to a relational database table using standard JDBC.
@@ -1535,7 +1367,7 @@ This connection source uses a JDBC connection string, a username, and a password
 Optionally, you can also use properties.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 8. JDBCAppender Parameters</caption>
+<caption class="title">Table 7. JDBCAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1657,7 +1489,7 @@ You must use exactly one of the following nested elements:</p>
 </ul>
 </div>
 <table id="JDBCDataSource" class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 9. DataSource Parameters</caption>
+<caption class="title">Table 8. DataSource Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1682,7 +1514,7 @@ by a connection pool; otherwise, logging will be very slow.</p></td>
 </tbody>
 </table>
 <table id="JDBCConnectionFactory" class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 10. ConnectionFactory Parameters</caption>
+<caption class="title">Table 9. ConnectionFactory Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1717,7 +1549,7 @@ be backed by a connection pool for the same reasons.</p></td>
 </tbody>
 </table>
 <table id="JDBCDriverManager" class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 11. DriverManager Parameters</caption>
+<caption class="title">Table 10. DriverManager Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1764,7 +1596,7 @@ properties and a username or password.</p></td>
 </tbody>
 </table>
 <table id="JDBCPoolingDriver" class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 12. PoolingDriver Parameters (Apache Commons DBCP)</caption>
+<caption class="title">Table 11. PoolingDriver Parameters (Apache Commons DBCP)</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1801,7 +1633,7 @@ a pooled connection elsewhere. For example:
 </tbody>
 </table>
 <table id="JDBCPoolableConnectionFactory" class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 13. PoolableConnectionFactory Parameters (Apache Commons DBCP)</caption>
+<caption class="title">Table 12. PoolableConnectionFactory Parameters (Apache Commons DBCP)</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1903,7 +1735,7 @@ The JDBCAppender uses this information to formulate a
 <code>PreparedStatement</code> to insert records without SQL injection vulnerability.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 14. Column Parameters</caption>
+<caption class="title">Table 13. Column Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -1991,7 +1823,7 @@ the value will be inserted as a VARCHAR or NVARCHAR (<code>setString</code> or
 </tbody>
 </table>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 15. ColumnMapping Parameters</caption>
+<caption class="title">Table 14. ColumnMapping Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -2194,7 +2026,7 @@ Starting in Log4j 2.1, these appenders were combined into the JMS Appender, whic
 However, configurations written for 2.0 that use the <code>&lt;JMSQueue/&gt;</code> or <code>&lt;JMSTopic/&gt;</code> elements will continue to work with the new <code>&lt;JMS/&gt;</code> configuration element.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 16. JMS Appender Parameters</caption>
+<caption class="title">Table 15. JMS Appender Parameters</caption>
 <colgroup>
 <col style="width: 16.6666%;">
 <col style="width: 16.6666%;">
@@ -2567,7 +2399,7 @@ Additional headers can be specified with embedded Property elements.</p>
 <a href="https://docs.oracle.com/javase/7/docs/api/java/net/HttpURLConnection.html">HttpURLConnection</a>.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 17. HttpAppender Parameters</caption>
+<caption class="title">Table 16. HttpAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -2805,7 +2637,7 @@ The default region size is 32 MB, which should strike a reasonable balance betwe
 For example, two web applications in a servlet container can have its own configuration and safely write to the same file if Log4j is in a ClassLoader that is common to both of them.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 18. MemoryMappedFileAppender Parameters</caption>
+<caption class="title">Table 17. MemoryMappedFileAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -2927,7 +2759,7 @@ Appender in a <a href="#FailoverAppender">FailoverAppender</a>.</p></td>
 Provider implementations currently exist for MongoDB, and writing a custom provider is quite simple.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 19. NoSQLAppender Parameters</caption>
+<caption class="title">Table 18. NoSQLAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -3112,7 +2944,7 @@ for more information.</p>
 <p>In order to use a Log4j MongoDB appender you need to add the following dependencies to your application:</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 20. MongoDB providers compatibility table</caption>
+<caption class="title">Table 19. MongoDB providers compatibility table</caption>
 <colgroup>
 <col style="width: 18.1818%;">
 <col style="width: 18.1818%;">
@@ -3180,7 +3012,7 @@ for more information.</p>
 The NoSQLAppender Appender writes log events to a NoSQL database using an internal lightweight provider interface.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 21. MongoDB Provider Parameters</caption>
+<caption class="title">Table 20. MongoDB Provider Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -3313,7 +3145,7 @@ Similar to the FileAppender, RandomAccessFileAppender uses a RandomAccessFileMan
 For example, two web applications in a servlet container can have their configuration and safely write to the same file if Log4j is in a ClassLoader that is common to both of them.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 22. RandomAccessFileAppender Parameters</caption>
+<caption class="title">Table 21. RandomAccessFileAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -3433,7 +3265,7 @@ The RewriteAppender must be configured with a RewritePolicy.
 The RewriteAppender should be configured after any Appenders it references to allow it to shut down properly.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 23. RewriteAppender Parameters</caption>
+<caption class="title">Table 22. RewriteAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -3701,7 +3533,7 @@ view action</a> can be configured in the DefaultRolloverStrategy to run at rollo
 <p>File locking is not supported by the RollingFileAppender.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 24. RollingFileAppender Parameters</caption>
+<caption class="title">Table 23. RollingFileAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -3913,7 +3745,7 @@ This policy is controlled by a timer and is asynchronous in processing log event
 The <code>filePattern</code> attribute of the Appender should contain a timestamp otherwise the target file will be overwritten on each rollover.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 25. CronTriggeringPolicy Parameters</caption>
+<caption class="title">Table 24. CronTriggeringPolicy Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -3952,7 +3784,7 @@ and the current time the file will be immediately rolled over.</p></td>
 <p>The <code>OnStartupTriggeringPolicy</code> policy causes a rollover if the log file is older than the current JVM&#8217;s start time and the minimum file size is met or exceeded.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 26. OnStartupTriggeringPolicy Parameters</caption>
+<caption class="title">Table 25. OnStartupTriggeringPolicy Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4004,7 +3836,7 @@ This policy accepts an
 <code>interval</code> attribute which indicates how frequently the rollover should occur based on the time pattern and a <code>modulate</code> boolean attribute.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 27. TimeBasedTriggeringPolicy Parameters</caption>
+<caption class="title">Table 26. TimeBasedTriggeringPolicy Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4195,7 +4027,7 @@ foo-1.log. A new foo.log file is created and starts being written to.</p></td>
 then the min and max values will be ignored and file numbering will increment by 1 and each rollover will have an incrementally higher value with no maximum number of files.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 28. DefaultRolloverStrategy Parameters</caption>
+<caption class="title">Table 27. DefaultRolloverStrategy Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4260,7 +4092,7 @@ If the size-based triggering policy causes multiple files to be written during t
 Furthermore, if the time changes such that the file pattern no longer matches the current file it will not be compressed at startup either.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 29. DirectWriteRolloverStrategy Parameters</caption>
+<caption class="title">Table 28. DirectWriteRolloverStrategy Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4449,7 +4281,7 @@ The Delete action lets users configure one or more conditions that select the fi
 With the <code>testMode</code> parameter you can test your configuration without accidentally deleting the wrong files.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 30. Delete Parameters</caption>
+<caption class="title">Table 29. Delete Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4587,7 +4419,7 @@ and must return a list with the paths to delete.</p>
 <h2 id="DeleteIfFileName"><a class="anchor" href="#DeleteIfFileName"></a>DeleteIfFileName</h2>
 <div class="sectionbody">
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 31. IfFileName Condition Parameters</caption>
+<caption class="title">Table 30. IfFileName Condition Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4636,7 +4468,7 @@ the path name matches).</p></td>
 <h2 id="DeleteIfLastModified"><a class="anchor" href="#DeleteIfLastModified"></a>DeleteIfLastModified</h2>
 <div class="sectionbody">
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 32. IfLastModified Condition Parameters</caption>
+<caption class="title">Table 31. IfLastModified Condition Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4675,7 +4507,7 @@ the file is old enough).</p></td>
 <h2 id="DeleteIfAccumulatedFileCount"><a class="anchor" href="#DeleteIfAccumulatedFileCount"></a>DeleteIfAccumulatedFileCount</h2>
 <div class="sectionbody">
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 33. IfAccumulatedFileCount Condition Parameters</caption>
+<caption class="title">Table 32. IfAccumulatedFileCount Condition Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4712,7 +4544,7 @@ the threshold count has been exceeded).</p></td>
 <h2 id="DeleteIfAccumulatedFileSize"><a class="anchor" href="#DeleteIfAccumulatedFileSize"></a>DeleteIfAccumulatedFileSize</h2>
 <div class="sectionbody">
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 34. IfAccumulatedFileSize Condition Parameters</caption>
+<caption class="title">Table 33. IfAccumulatedFileSize Condition Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4828,7 +4660,7 @@ During every rollover, this configuration will delete files that match "<strong>
 <h2 id="ScriptCondition"><a class="anchor" href="#ScriptCondition"></a>ScriptCondition</h2>
 <div class="sectionbody">
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 35. ScriptCondition Parameters</caption>
+<caption class="title">Table 34. ScriptCondition Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4860,7 +4692,7 @@ how ScriptFiles and ScriptRefs can be configured.</p></td>
 <h2 id="ScriptParameters"><a class="anchor" href="#ScriptParameters"></a>ScriptParameters</h2>
 <div class="sectionbody">
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 36. Script Parameters</caption>
+<caption class="title">Table 35. Script Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -4990,7 +4822,7 @@ The Delete action will delete all files returned by the script.</p>
 The PosixViewAttribute action lets users configure one or more conditions that select the eligible files relative to a base directory.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 37. PosixViewAttribute Parameters</caption>
+<caption class="title">Table 36. PosixViewAttribute Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -5145,7 +4977,7 @@ Since log4j-2.5, a <a href="#CustomDeleteOnRollover">custom delete action</a> ca
 <p>File locking is not supported by the RollingRandomAccessFileAppender.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 38. RollingRandomAccessFileAppender Parameters</caption>
+<caption class="title">Table 37. RollingRandomAccessFileAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -5404,7 +5236,7 @@ The <code>RoutingAppender</code> should be configured after any Appenders it ref
 <p>You can also configure a <code>RoutingAppender</code> with scripts: you can run a script when the appender starts and when a route is chosen for an log event.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 39. RoutingAppender Parameters</caption>
+<caption class="title">Table 38. RoutingAppender Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -5540,7 +5372,7 @@ If the <code>Route</code> contains an <code>Appender</code> definition then an
 <p>This script is passed the following variables:</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 40. RoutingAppender Routes Script Parameters</caption>
+<caption class="title">Table 39. RoutingAppender Routes Script Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -5866,7 +5698,7 @@ Due to limitations in the TCP protocol that means that when the target server cl
 If guaranteed delivery is required a protocol that requires acknowledgments must be used.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 41. <code>SocketAppender</code> Parameters</caption>
+<caption class="title">Table 40. <code>SocketAppender</code> Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -6031,7 +5863,7 @@ Appender in a <a href="#FailoverAppender">FailoverAppender</a>.</p></td>
 This section documents the parameters available for SSL configuration.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 42. SSL Configuration Parameters</caption>
+<caption class="title">Table 41. SSL Configuration Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -6074,7 +5906,7 @@ counterparty. Determines whether the remote authentication credentials
 <p>The Keystore is meant to contain your private keys and certificates, and determines which authentication credentials to send to the remote host.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 43. KeyStore Configuration Parameters</caption>
+<caption class="title">Table 42. KeyStore Configuration Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -6142,7 +5974,7 @@ Determines whether the remote authentication credentials (and thus the connectio
 <p>In some cases, they can be the same store, although it is often better practice to use distinct stores (especially when they are file-based).</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 44. TrustStore Configuration Parameters</caption>
+<caption class="title">Table 43. TrustStore Configuration Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
@@ -6221,7 +6053,7 @@ algorithms</a>.</p></td>
 The data can be sent over either TCP or UDP.</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
-<caption class="title">Table 45. <code>SyslogAppender</code> Parameters</caption>
+<caption class="title">Table 44. <code>SyslogAppender</code> Parameters</caption>
 <colgroup>
 <col style="width: 20%;">
 <col style="width: 20%;">
diff --git a/manual/configuration.html b/manual/configuration.html
index 9e47c6ecfc..bb00875051 100644
--- a/manual/configuration.html
+++ b/manual/configuration.html
@@ -267,2169 +267,2692 @@
 <div id="preamble">
 <div class="sectionbody">
 <div class="paragraph">
-<p>Inserting log requests into the application code requires a fair amount
-of planning and effort. Observation shows that approximately 4 percent
-of code is dedicated to logging. Consequently, even moderately sized
-applications will have thousands of logging statements embedded within
-their code. Given their number, it becomes imperative to manage these
-log statements without the need to modify them manually.</p>
+<p>Logging is a standard method for monitoring the health of an application and diagnosing problems that may arise within it.
+Even moderately sized applications can contain thousands of logging statements.</p>
 </div>
 <div class="paragraph">
-<p>Configuration of Log4j 2 can be accomplished in 1 of 4 ways:</p>
+<p>To decide which of these statements will be logged and where, users need to configure Log4j Core in one of two ways:</p>
 </div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Through a configuration file written in XML, JSON, YAML, or
-properties format.</p>
-</li>
-<li>
-<p>Programmatically, by creating a ConfigurationFactory and
-Configuration implementation.</p>
-</li>
+<div class="ulist">
+<ul>
 <li>
-<p>Programmatically, by calling the APIs exposed in the Configuration
-interface to add components to the default configuration.</p>
+<p>through a <a href="#configuration-file">Configuration file</a>.
+Since version 2.0, the configuration file format has been considered part of the public API and has remained stable across significant version upgrades.</p>
 </li>
 <li>
-<p>Programmatically, by calling methods on the internal Logger class.</p>
+<p>through <a href="customconfig.html" class="xref page">Programmatic Configuration</a>, which provides a larger spectrum of possible customizations but might require code changes during version upgrades.</p>
 </li>
-</ol>
-</div>
-<div class="paragraph">
-<p>This page focuses primarily on configuring Log4j through a configuration
-file. Information on programmatically configuring Log4j can be found at
-<a href="extending.html" class="xref page">Extending Log4j 2</a> and
-<a href="customconfig.html" class="xref page">Programmatic Log4j Configuration</a>.</p>
+</ul>
 </div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>All available formats are functionally equivalent. For example, a
-configuration file in XML can be rewritten using the properties format
-(and the opposite) without any loss of functionality. However, the
-hierarchical nature of a Log4j configuration can be captured better in
-formats which naturally support nesting so XML, JSON, and YAML files,
-are usually easier to use.</p>
+<p>To prevent a chicken-and-egg problem, users can only supply some configuration options (e.g., the configuration file location) through <a href="systemproperties.html" class="xref page">configuration properties</a>.</p>
 </div>
-<div class="paragraph">
-<p>Note that unlike Log4j 1.x, the public Log4j 2 API does not expose
-methods to add, modify or remove appenders and filters or manipulate the
-configuration in any way.</p>
+</td>
+</tr>
+</table>
 </div>
 </div>
 </div>
 <div class="sect1">
-<h2 id="Architecture"><a class="anchor" href="#Architecture"></a>Architecture</h2>
+<h2 id="configuration-file"><a class="anchor" href="#configuration-file"></a>Configuration file</h2>
 <div class="sectionbody">
 <div class="paragraph">
-<p>In part because support for XML was added first, Log4j&#8217;s configuration is reflected as a tree structure.
-In fact every configuration dialect, including the ConfigurationBuilder, generates a Node for every
-configuration element. A node is a fairly simple structure that contains a set of attributes, a set of
-child nodes and a PluginType. It is important to note that every Node must have a corresponding plugn,
-as the plugin is the component that actually performs the work represented by the node.</p>
+<p>Users can configure Log4j Core using different file formats.
+Log4j includes XML, JSON, YAML, and Java properties formats factories.</p>
 </div>
 <div class="paragraph">
-<p>Every document type supported by Log4j has a ConfigurationFactory. The factory itself is a Log4j plugin
-that declares what file extensions it supports and what its priority is. Properties have the highest
-precedence with a value of 8, followed by yaml, json and xml. When autoconfiguration is performed Log4j
-will call each of these factories in order to determine which, if any, support the specified configuration
-file format. If one is found that factory will create the corresponding Configuratoin object and pass the
-reference to the configuration data to it.</p>
+<p>As detailed in the table below, some configuration formats require additional dependencies on the classpath.</p>
 </div>
-<div class="paragraph">
-<p>Every configuration implementation, such as XMLConfiguration, YamlConfiguration, JsonConfiguration, etc.
-has the primary task of converting the configuration text into the Node tree, typically by parsing the
-text with whatever tool is available for that document type. It should be noted that while most of the
-supported document types are inherintly tree structured, the Java properties syntax is not. Because of the
-need to convert the syntax into a Node tree the Java properties syntax used by Log4j required all properties
-follow a naming pattern that made the tree structure clear. As a consequence, the Java Properties format
-tends to be more verbose than using a different document type.</p>
-</div>
-<div class="paragraph">
-<p>Once the Node tree is created control is delegated to AbstractConfiguration, which convertes the Nodes into
-their respective Java objects using Log4j&#8217;s Plugin system and provides all the common functionality.</p>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="Arbiters"><a class="anchor" href="#Arbiters"></a>Arbiters</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>In some situations it is desirable to have a single logging configuration that can be used in any
-deployment environment. For example, it may be necessary to have a different default logging level in
-production then in development. Another case might be where one type of appender is used when running
-natively but another is used when deployed to a docker container. One way to handle that is to use
-a tool such as Spring Cloud Config Server that can be environment aware and serve a different file for
-each environment. Another option is to include Arbiters in the configuration.</p>
-</div>
-<div class="paragraph">
-<p>An Arbiter is a Log4j plugin that has the job of determining whether other configured elements should be
-included in the generated configuration. While all other "Core" plugins are designed to execute as part of
-Log4j&#8217;s runtime logic Arbiters execute after the Node tree has been constructed but before the tree is
-converted to a configuration. An Arbiter is a Node itself which is always removed from the Node tree
-before it the tree is processed. All an arbiter really does is provide a method that returns a boolean
-result that determines whether the child nodes of the arbiter should remain in the configuration or be
-pruned.</p>
+<div id="_tabs_1" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_1_maven" class="tab">
+<p>Maven</p>
+</li>
+<li id="_tabs_1_gradle" class="tab">
+<p>Gradle</p>
+</li>
+</ul>
 </div>
-<div class="paragraph">
-<p>Arbiters may occur anywhere an element is allowed in the configuration. So an Aribiter could encapsulate
-something as simple as a single property declaration or a whole set of Appenders or Loggers. Arbiters
-may also be nested although Arbiters that are the descendant of another arbiter will only be evalued if the
-ancestor returned true. The child elements of an Arbiter must be valid elements for whatever element is
-the parent of the Arbiter.</p>
+<div id="_tabs_1_maven--panel" class="tabpanel" aria-labelledby="_tabs_1_maven">
+<div id="_tabs_2" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_2_log4j2_xml" class="tab">
+<p>log4j2.xml</p>
+</li>
+<li id="_tabs_2_log4j2_json" class="tab">
+<p>log4j2.json</p>
+</li>
+<li id="_tabs_2_log4j2_yaml" class="tab">
+<p>log4j2.yaml</p>
+</li>
+<li id="_tabs_2_log4j2_properties" class="tab">
+<p>log4j2.properties</p>
+</li>
+</ul>
 </div>
+<div id="_tabs_2_log4j2_xml--panel" class="tabpanel" aria-labelledby="_tabs_2_log4j2_xml">
 <div class="paragraph">
-<p>This example shows two Arbiters configured that will include either a Console Appender or a List Appender
-depending on whether the value of the env System Property is "dev" or "prod".</p>
+<p>JPMS users need to add:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Configuration name="ConfigTest" status="ERROR" monitorInterval="5"&gt;
-  &lt;Appenders&gt;
-
-    &lt;SystemPropertyArbiter propertyName="env" propertyValue="dev"&gt;
-      &lt;Console name="Out"&gt;
-        &lt;PatternLayout pattern="%m%n"/&gt;
-      &lt;/Console&gt;
-    &lt;/SystemPropertyArbiter&gt;
-    &lt;SystemPropertyArbiter propertyName="env" propertyValue="prod"&gt;
-      &lt;List name="Out"&gt;
-      &lt;/List&gt;
-    &lt;/SystemPropertyArbiter&gt;
-
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="org.apache.test" level="trace" additivity="false"&gt;
-      &lt;AppenderRef ref="Out"/&gt;
-    &lt;/Logger&gt;
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="Out"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">module foo.bar {
+    requires java.xml;
+}</code></pre>
 </div>
 </div>
 <div class="paragraph">
-<p>Normally Arbiters act in isolation from other Arbiters. That is, the outcome of one Arbiter will not
-impact any other Arbiters. This can be cumbersome when you simply want to use one of a set of choices. A
-special plugin named "Select" can be used in this case. Each element under the Select is required to be
-an Arbiter. The first Arbiter that returns a true value will be the one used while others are ignored.
-If no Arbiter returns true a DefaultAtrbiter may be configured with the default configuration elements.
-The DefaultArbiter is an Arbiter that always returns true, so using it outside of a Select would result in
-its configured elements always being included just as if it hadn&#8217;t been present.</p>
+<p>to their <code>module-info.java</code> descriptor.</p>
 </div>
+</div>
+<div id="_tabs_2_log4j2_json--panel" class="tabpanel" aria-labelledby="_tabs_2_log4j2_json">
 <div class="paragraph">
-<p>This example shows an Arbiter that uses Javascript residing in a separate file to determine whether to
-include the Console Appender. If the result is false then a List Appender will be included.</p>
+<p>No dependency required.</p>
+</div>
 </div>
+<div id="_tabs_2_log4j2_yaml--panel" class="tabpanel" aria-labelledby="_tabs_2_log4j2_yaml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Configuration name="ConfigTest" status="ERROR" monitorInterval="5"&gt;
-  &lt;Appenders&gt;
-    &lt;Select&gt;
-      &lt;ScriptArbiter&gt;
-        &lt;ScriptFile language="JavaScript" path="src/test/resources/scripts/prodtest.js" charset="UTF-8" /&gt;
-        &lt;Console name="Out"&gt;
-          &lt;PatternLayout pattern="%m%n"/&gt;
-        &lt;/Console&gt;
-      &lt;/ScriptArbiter&gt;
-      &lt;DefaultArbiter&gt;
-        &lt;List name="Out"&gt;
-        &lt;/List&gt;
-      &lt;/DefaultArbiter&gt;
-    &lt;/Select&gt;
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="org.apache.test" level="trace" additivity="false"&gt;
-      &lt;AppenderRef ref="Out"/&gt;
-    &lt;/Logger&gt;
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="Out"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
-</div>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
+    &lt;artifactId&gt;log4j-config-yaml&lt;/artifactId&gt;
+&lt;/dependency&gt;</code></pre>
 </div>
-<div class="paragraph">
-<p>Natively Log4j contains the SystemProperty Arbiter that can evaluate whether to include elements based on
-whether a SystemProperty is non-null or has a specific value, a ClassArbiter that makes its decision
-based on whether the specified class is present, and a ScriptArbiter that makes its decision based
-on the result of the script configured with it.</p>
-</div>
-<div class="paragraph">
-<p>For Spring Boot users an Arbiter named &lt;code&gt;SpringProfile&lt;/code&gt; has been provided. The specified profiles
-are evaluated by Spring&#8217;s &lt;code&gt;Environment.acceptsProfiles()&lt;/code&gt; method, so any expressions it supports
-may be used as the name attribute.</p>
 </div>
-<div class="paragraph">
-<p>This example will use a Console Appender when the Spring profile is "dev" or "staging" and a List
-Appender when the active profile is "prod".</p>
 </div>
+<div id="_tabs_2_log4j2_properties--panel" class="tabpanel" aria-labelledby="_tabs_2_log4j2_properties">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Configuration name="ConfigTest" status="ERROR" monitorInterval="5"&gt;
-  &lt;Appenders&gt;
-
-    &lt;SpringProfile name="dev | staging"&gt;
-      &lt;Console name="Out"&gt;
-        &lt;PatternLayout pattern="%m%n"/&gt;
-      &lt;/Console&gt;
-    &lt;/SpringProfile&gt;
-    &lt;SpringProfile name="prod"&gt;
-      &lt;List name="Out"&gt;
-      &lt;/List&gt;
-    &lt;/SpringProfile&gt;
-
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="org.apache.test" level="trace" additivity="false"&gt;
-      &lt;AppenderRef ref="Out"/&gt;
-    &lt;/Logger&gt;
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="Out"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
+    &lt;artifactId&gt;log4j-config-properties&lt;/artifactId&gt;
+&lt;/dependency&gt;</code></pre>
 </div>
 </div>
 </div>
 </div>
-<div class="sect1">
-<h2 id="AutomaticConfiguration"><a class="anchor" href="#AutomaticConfiguration"></a>Automatic Configuration</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Log4j has the ability to automatically configure itself during
-initialization. When Log4j starts it will locate all the
-ConfigurationFactory plugins and arrange them in weighted order from
-highest to lowest. As delivered, Log4j contains four
-ConfigurationFactory implementations: one for JSON, one for YAML, one
-for properties, and one for XML.</p>
 </div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>Log4j will inspect the <code>"log4j2.configurationFile"</code> system property
-and, if set, will attempt to load the configuration using the
-<code>ConfigurationFactory</code> that matches the file extension. Note that this
-is not restricted to a location on the local file system and may contain
-a URL.</p>
-</li>
-<li>
-<p>If no system property is set the properties ConfigurationFactory
-will look for <code>log4j2-test.properties</code> in the classpath.</p>
-</li>
-<li>
-<p>If no such file is found the YAML ConfigurationFactory will look for
-<code>log4j2-test.yaml</code> or <code>log4j2-test.yml</code> in the classpath.</p>
-</li>
-<li>
-<p>If no such file is found the JSON ConfigurationFactory will look for
-<code>log4j2-test.json</code> or <code>log4j2-test.jsn</code> in the classpath.</p>
-</li>
-<li>
-<p>If no such file is found the XML ConfigurationFactory will look for
-<code>log4j2-test.xml</code> in the classpath.</p>
-</li>
-<li>
-<p>If a test file cannot be located the properties ConfigurationFactory
-will look for <code>log4j2.properties</code> on the classpath.</p>
-</li>
-<li>
-<p>If a properties file cannot be located the YAML ConfigurationFactory
-will look for <code>log4j2.yaml</code> or <code>log4j2.yml</code> on the classpath.</p>
+</div>
+<div id="_tabs_1_gradle--panel" class="tabpanel" aria-labelledby="_tabs_1_gradle">
+<div id="_tabs_3" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_3_log4j2_xml" class="tab">
+<p>log4j2.xml</p>
 </li>
-<li>
-<p>If a YAML file cannot be located the JSON ConfigurationFactory will
-look for <code>log4j2.json</code> or <code>log4j2.jsn</code> on the classpath.</p>
+<li id="_tabs_3_log4j2_json" class="tab">
+<p>log4j2.json</p>
 </li>
-<li>
-<p>If a JSON file cannot be located the XML ConfigurationFactory will
-try to locate <code>log4j2.xml</code> on the classpath.</p>
+<li id="_tabs_3_log4j2_yaml" class="tab">
+<p>log4j2.yaml</p>
 </li>
-<li>
-<p>If no configuration file could be located the <code>DefaultConfiguration</code>
-will be used. This will cause logging output to go to the console.</p>
+<li id="_tabs_3_log4j2_properties" class="tab">
+<p>log4j2.properties</p>
 </li>
-</ol>
-</div>
-<div class="paragraph">
-<p>An example application named <code>MyApp</code> that uses log4j can be used to
-illustrate how this is done.</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">import com.foo.Bar;
-
-// Import log4j classes.
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.LogManager;
-
-public class MyApp {
-
-    // Define a static logger variable so that it references the
-    // Logger instance named "MyApp".
-    private static final Logger logger = LogManager.getLogger(MyApp.class);
-
-    public static void main(final String... args) {
-
-        // Set up a simple configuration that logs on the console.
-
-        logger.trace("Entering application.");
-        Bar bar = new Bar();
-        if (!bar.doIt()) {
-            logger.error("Didn't do it.");
-        }
-        logger.trace("Exiting application.");
-    }
-}</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p><code>MyApp</code> begins by importing log4j related classes. It then defines a
-static logger variable with the name <code>MyApp</code> which happens to be the
-fully qualified name of the class.</p>
+</ul>
 </div>
+<div id="_tabs_3_log4j2_xml--panel" class="tabpanel" aria-labelledby="_tabs_3_log4j2_xml">
 <div class="paragraph">
-<p><code>MyApp</code> uses the <code>Bar</code> class defined in the package`com.foo`.</p>
+<p>JPMS users need to add:</p>
 </div>
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">package com.foo;
-import org.apache.logging.log4j.Logger;
-import org.apache.logging.log4j.LogManager;
-
-public class Bar {
-  static final Logger logger = LogManager.getLogger(Bar.class.getName());
-
-  public boolean doIt() {
-    logger.entry();
-    logger.error("Did it again!");
-    return logger.exit(false);
-  }
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">module foo.bar {
+    requires java.xml;
 }</code></pre>
 </div>
 </div>
 <div class="paragraph">
-<p>Log4j will provide a default configuration if it cannot locate a
-configuration file. The default configuration, provided in the
-DefaultConfiguration class, will set up:</p>
+<p>to their <code>module-info.java</code> descriptor.</p>
 </div>
-<div class="ulist">
-<ul>
-<li>
-<p>A
-<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/appender/ConsoleAppender.html"><code>ConsoleAppender</code></a>
-attached to the root logger.</p>
-</li>
-<li>
-<p>A
-<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/layout/PatternLayout.html"><code>PatternLayout</code></a>
-set to the pattern "%d\{HH:mm:ss.SSS} [%t] %-5level %logger{36} -
-%msg%n" attached to the ConsoleAppender</p>
-</li>
-</ul>
 </div>
+<div id="_tabs_3_log4j2_json--panel" class="tabpanel" aria-labelledby="_tabs_3_log4j2_json">
 <div class="paragraph">
-<p>Note that by default Log4j assigns the root logger to <code>Level.ERROR</code>.</p>
+<p>No dependency required.</p>
 </div>
-<div class="paragraph">
-<p>The output of MyApp would be similar to:</p>
 </div>
-<div class="literalblock">
+<div id="_tabs_3_log4j2_yaml--panel" class="tabpanel" aria-labelledby="_tabs_3_log4j2_yaml">
+<div class="listingblock">
 <div class="content">
-<pre>17:13:01.540 [main] ERROR com.foo.Bar - Did it again!
-17:13:01.540 [main] ERROR MyApp - Didn't do it.</pre>
+<pre class="highlightjs highlight"><code class="language-groovy hljs" data-lang="groovy">runtimeOnly 'org.apache.logging.log4j:log4j-config-yaml'</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>As was described previously, Log4j will first attempt to configure
-itself from configuration files. A configuration equivalent to the
-default would look like:</p>
 </div>
+<div id="_tabs_3_log4j2_properties--panel" class="tabpanel" aria-labelledby="_tabs_3_log4j2_properties">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="WARN"&gt;
-  &lt;Appenders&gt;
-    &lt;Console name="Console" target="SYSTEM_OUT"&gt;
-      &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
-    &lt;/Console&gt;
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="Console"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-groovy hljs" data-lang="groovy">runtimeOnly 'org.apache.logging.log4j:log4j-config-properties'</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>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:</p>
 </div>
-<div class="literalblock">
-<div class="content">
-<pre>17:13:01.540 [main] TRACE MyApp - Entering application.
-17:13:01.540 [main] TRACE com.foo.Bar - entry
-17:13:01.540 [main] ERROR com.foo.Bar - Did it again!
-17:13:01.540 [main] TRACE com.foo.Bar - exit with (false)
-17:13:01.540 [main] ERROR MyApp - Didn't do it.
-17:13:01.540 [main] TRACE MyApp - Exiting application.</pre>
 </div>
 </div>
-<div class="paragraph">
-<p>Note that status logging is disabled when the default configuration is
-used.</p>
 </div>
 </div>
 </div>
-<div class="sect1">
-<h2 id="Configuration_From_a_URI"><a class="anchor" href="#Configuration_From_a_URI"></a>Configuration From a URI</h2>
-<div class="sectionbody">
+<div class="admonitionblock warning">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-warning" title="Warning"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>When <code>log4j2.configurationFile</code> references a URL, Log4j will first determine if the URL reference
-a file using the file protocol. If it does Log4j will validate that the file URL is valid and continue
-processing as previously described. If it contains a protocol other than file then Log4j will inspect
-the value of the <code>log4j2.Configuration.allowedProtocols</code> system property. If the provided list
-contains the protocol specified then Log4j will use the URI to locate the specified configuration file. If
-not an exception will be thrown and an error message will be logged. If no value is provided for the
-system property it will default to "https". Use of any protocol other than "file" can be prevented by
-setting the system property value to "_none". This value would be an invalid protocol so cannot conflict
-with any custom protocols that may be present.</p>
+<p>The format of the configuration file changed between Log4j&#160;1 and Log4j&#160;2.
+Files in the Log4j&#160;1 format are ignored by default.</p>
 </div>
 <div class="paragraph">
-<p>Log4j supports access to remote URLs that require authentication. Log4j supports basic authentication
-out of the box. If the <code>log4j2.Configuration.username</code> and <code>log4j2.Configuration.password</code>
-are specified those values will be used to perform the authentication. If the password is encrypted a custom
-password decryptor may be supplied by specifying the fully qualified class name in the
-<code>log4j2.Configuration.passwordDecryptor</code> system property. A custom
-<code>AuthenticationProvider</code> may be used by setting the
-<code>log4j2.Configuration.authenticationProvider</code> system property to the fully qualified class name
-of the provider.</p>
-</div>
+<p>To enable partial support for old configuration formats, see <a href="migration.html#enabling-the-log4j-1-x-bridge" class="xref page">Enabling the Log4j&#160;1 bridge</a>.</p>
 </div>
+</td>
+</tr>
+</table>
 </div>
-<div class="sect1">
-<h2 id="Additivity"><a class="anchor" href="#Additivity"></a>Additivity</h2>
-<div class="sectionbody">
+<div class="sect2">
+<h3 id="automatic-configuration"><a class="anchor" href="#automatic-configuration"></a><a id="AutomaticConfiguration"></a> Configuration file location</h3>
 <div class="paragraph">
-<p>Perhaps it is desired to eliminate all the TRACE output from everything
-except <code>com.foo.Bar</code>. Simply changing the log level would not accomplish
-the task. Instead, the solution is to add a new logger definition to the
-configuration:</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Configuration&gt;
-  &lt;!-- ... --&gt;
-  &lt;Logger name="com.foo.Bar" level="TRACE"/&gt;
-  &lt;Root level="ERROR"&gt;
-    &lt;AppenderRef ref="STDOUT"/&gt;
-  &lt;/Root&gt;
-&lt;/Configuration&gt;</code></pre>
+<p>Upon initialization of a new logger context, Log4j assigns it a context name and scans the following <strong>classpath</strong> locations for a configuration file:</p>
 </div>
+<div class="olist arabic">
+<ol class="arabic">
+<li>
+<p>Files named <code>log4j2-test&lt;contextName&gt;.&lt;extension&gt;</code></p>
+</li>
+<li>
+<p>Files named <code>log4j2-test.&lt;extension&gt;</code>,</p>
+</li>
+<li>
+<p>Files named <code>log4j2&lt;contextName&gt;.&lt;extension&gt;</code></p>
+</li>
+<li>
+<p>Files named <code>log4j2.&lt;extension&gt;</code>,</p>
+</li>
+<li>
+<p>If no configuration file is found, Log4j uses the <a href="../javadoc/log4j-core/org/apache/logging/log4j/core/config/DefaultConfiguration">DefaultConfiguration</a>, and the status logger prints a warning.
+The default configuration prints all messages less specific than
+<a href="systemproperties.html#log4j.configuration.level" class="xref page">log4j.configuration.level</a>
+to the console.</p>
+</li>
+</ol>
 </div>
+<div class="admonitionblock caution">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-caution" title="Caution"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>With this configuration all log events from <code>com.foo.Bar</code> will be
-recorded while only error events will be recorded from all other
-components.</p>
+<p>The configuration files prefixed by <code>log4j2-test</code> should only be used on the test classpath.</p>
 </div>
 <div class="paragraph">
-<p>In the previous example all the events from <code>com.foo.Bar</code> were still
-written to the Console. This is because the logger for <code>com.foo.Bar</code> did
-not have any appenders configured while its parent did. In fact, the
-following configuration</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="WARN"&gt;
-  &lt;Appenders&gt;
-    &lt;Console name="Console" target="SYSTEM_OUT"&gt;
-      &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
-    &lt;/Console&gt;
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="com.foo.Bar" level="trace"&gt;
-      &lt;AppenderRef ref="Console"/&gt;
-    &lt;/Logger&gt;
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="Console"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
-</div>
+<p>If multiple configuration files in the same category are found, Log4j uses a deterministic order to choose one of them (see <a href="../javadoc/log4j-core/org/apache/logging/log4j/core/config/Order">@Order</a>).</p>
 </div>
 <div class="paragraph">
-<p>would result in</p>
+<p>Nevertheless:</p>
 </div>
-<div class="literalblock">
-<div class="content">
-<pre>17:13:01.540 [main] TRACE com.foo.Bar - entry
-17:13:01.540 [main] TRACE com.foo.Bar - entry
-17:13:01.540 [main] ERROR com.foo.Bar - Did it again!
-17:13:01.540 [main] TRACE com.foo.Bar - exit (false)
-17:13:01.540 [main] TRACE com.foo.Bar - exit (false)
-17:13:01.540 [main] ERROR MyApp - Didn't do it.</pre>
+<div class="ulist">
+<ul>
+<li>
+<p>If you&#8217;re developing an app, don&#8217;t use config files with different extensions.</p>
+</li>
+<li>
+<p>If you&#8217;re developing a library, only add config files to your test classpath.</p>
+</li>
+</ul>
 </div>
+</td>
+</tr>
+</table>
 </div>
 <div class="paragraph">
-<p>Notice that the trace messages from <code>com.foo.Bar</code> appear twice. This is
-because the appender associated with logger <code>com.foo.Bar</code> is first used,
-which writes the first instance to the Console. Next, the parent of
-<code>com.foo.Bar</code>, which in this case is the root logger, is referenced. The
-event is then passed to its appender, which is also writes to the
-Console, resulting in the second instance. This is known as additivity.
-While additivity can be quite a convenient feature (as in the first
-previous example where no appender reference needed to be configured),
-in many cases this behavior is considered undesirable and so it is
-possible to disable it by setting the additivity attribute on the logger
-to false:</p>
+<p>The <code>&lt;contextName&gt;</code> and <code>&lt;extension&gt;</code> placeholders above have the following meaning</p>
 </div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="WARN"&gt;
-  &lt;Appenders&gt;
-    &lt;Console name="Console" target="SYSTEM_OUT"&gt;
-      &lt;PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/&gt;
-    &lt;/Console&gt;
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="com.foo.Bar" level="trace" additivity="false"&gt;
-      &lt;AppenderRef ref="Console"/&gt;
-    &lt;/Logger&gt;
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="Console"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
+<div class="dlist">
+<dl>
+<dt class="hdlist1">&lt;contextName&gt;</dt>
+<dd>
+<p>depends on the runtime environment in which Log4j runs:</p>
+<div class="ulist">
+<ul>
+<li>
+<p>for standalone Java SE applications, it is a random identifier,</p>
+</li>
+<li>
+<p>for web applications, it is derived from the application descriptor.
+See
+<a href="../../jakarta/log4j-jakarta-web.html#config">Log4j Jakarta
+ Web application configuration</a> for more details.</p>
+</li>
+</ul>
 </div>
+</dd>
+<dt class="hdlist1">&lt;extension&gt;</dt>
+<dd>
+<p>must be one of the file extensions assigned to a configuration file format:</p>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 50%;">
+<col style="width: 50%;">
+</colgroup>
+<thead>
+<tr>
+<th class="tableblock halign-left valign-top">Configuration file format</th>
+<th class="tableblock halign-left valign-top">Extension</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">XML</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>xml</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">JSON</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>json</code> or <code>jsn</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">YAML</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>yaml</code> or <code>yml</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">Java properties</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>properties</code></p></td>
+</tr>
+</tbody>
+</table>
+</dd>
+</dl>
 </div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>Once an event reaches a logger with its additivity set to false the
-event will not be passed to any of its parent loggers, regardless of
-their additivity setting.</p>
-</div>
+<p>It is also possible to override the location of the configuration file using the
+<a href="systemproperties.html#log4j.configuration.location" class="xref page">log4j.configuration.location</a>
+configuration property.
+In this case, Log4j will guess the configuration file format from the provided configuration file extension or use the default configuration factory if the extension is unknown.</p>
 </div>
-</div>
-<div class="sect1">
-<h2 id="AutomaticReconfiguration"><a class="anchor" href="#AutomaticReconfiguration"></a>Automatic Reconfiguration</h2>
-<div class="sectionbody">
 <div class="paragraph">
-<p>When configured from a File, Log4j has the ability to automatically
-detect changes to the configuration file and reconfigure itself. If the
-<code>monitorInterval</code> attribute is specified on the configuration element
-and is set to a non-zero value then the file will be checked the next
-time a log event is evaluated and/or logged and the monitorInterval has
-elapsed since the last check. The example below shows how to configure
-the attribute so that the configuration file will be checked for changes
-only after at least 30 seconds have elapsed. The minimum interval is 5
-seconds.</p>
-</div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration monitorInterval="30"&gt;
-...
-&lt;/Configuration&gt;</code></pre>
-</div>
-</div>
+<p>See <a href="systemproperties.html#log4j.configuration.location" class="xref page">log4j.configuration.location</a> for details.</p>
 </div>
+</td>
+</tr>
+</table>
 </div>
-<div class="sect1">
-<h2 id="ChainsawSupport"><a class="anchor" href="#ChainsawSupport"></a>Chainsaw can automatically process your log files (Advertising appender configurations)</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Log4j provides the ability to 'advertise' appender configuration details
-for all file-based appenders as well as socket-based appenders. For
-example, for file-based appenders, the file location and the pattern
-layout in the file are included in the advertisement. Chainsaw and other
-external systems can discover these advertisements and use that
-information to intelligently process the log file.</p>
 </div>
+<div class="sect2">
+<h3 id="configuration-syntax"><a class="anchor" href="#configuration-syntax"></a><a id="ConfigurationSyntax"></a> Syntax</h3>
 <div class="paragraph">
-<p>The mechanism by which an advertisement is exposed, as well as the
-advertisement format, is specific to each Advertiser implementation. An
-external system which would like to work with a specific Advertiser
-implementation must understand how to locate the advertised
-configuration as well as the format of the advertisement. For example, a
-'database' Advertiser may store configuration details in a database
-table. An external system can read that database table in order to
-discover the file location and the file format.</p>
+<p>The Log4j runtime is composed of <a href="plugins.html" class="xref page">plugins</a>, which are like beans in the Spring Framework and Java EE.
+Appenders, layouts, filters, configuration loaders, and similar components are all accessed as plugins.</p>
 </div>
 <div class="paragraph">
-<p>Log4j provides one Advertiser implementation, a 'multicastdns'
-Advertiser, which advertises appender configuration details via IP
-multicast using the <a href="http://jmdns.sourceforge.net" class="bare">http://jmdns.sourceforge.net</a> library.</p>
+<p>All configuration files are represented internally as a tree of
+<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/config/Node">Node</a>s, which is translated into a tree of Log4j plugins.
+The tree&#8217;s root creates a <a href="../javadoc/log4j-core/org/apache/logging/log4j/core/config/Configuration">Configuration</a> object.</p>
 </div>
 <div class="paragraph">
-<p>Chainsaw automatically discovers log4j&#8217;s multicastdns-generated
-advertisements and displays those discovered advertisements in
-Chainsaw&#8217;s Zeroconf tab (if the jmdns library is in Chainsaw&#8217;s
-classpath). To begin parsing and tailing a log file provided in an
-advertisement, just double-click the advertised entry in Chainsaw&#8217;s
-Zeroconf tab. Currently, Chainsaw only supports FileAppender
-advertisements.</p>
+<p>A node is a relatively simple structure representing a single Log4j plugin (see <a href="../plugin-reference.html" class="xref page">Plugin reference</a> for a complete list), such as an appender, layout, or logger configuration.</p>
 </div>
 <div class="paragraph">
-<p>To advertise an appender configuration:</p>
+<p>Each node has:</p>
 </div>
 <div class="ulist">
 <ul>
 <li>
-<p>Add the JmDns library from <a href="http://jmdns.sourceforge.net" class="bare">http://jmdns.sourceforge.net</a> to the
-application classpath</p>
-</li>
-<li>
-<p>Set the 'advertiser' attribute of the configuration element to
-'multicastdns'</p>
+<p>a set of simple string key-value pairs called <strong>attributes</strong>.
+Attributes are <strong>matched by name</strong> against the list of available configuration options of a Log4j plugin.</p>
 </li>
 <li>
-<p>Set the 'advertise' attribute on the appender element to 'true'</p>
+<p>The <strong>plugin type</strong> attribute specifies the kind of Log4j plugin we want to instantiate.</p>
 </li>
 <li>
-<p>If advertising a FileAppender-based configuration, set the
-'advertiseURI' attribute on the appender element to an appropriate URI</p>
+<p>A set of child nodes called <strong>nested elements</strong>.
+They are <strong>matched by type</strong> against the list of nested components a plugin accepts.</p>
 </li>
 </ul>
 </div>
 <div class="paragraph">
-<p>FileAppender-based configurations require an additional 'advertiseURI'
-attribute to be specified on the appender. The 'advertiseURI' attribute
-provides Chainsaw with information on how the file can be accessed. For
-example, the file may be remotely accessible to Chainsaw via ssh/sftp by
-specifying a Commons VFS (<a href="http://commons.apache.org/proper/commons-vfs/" class="bare">http://commons.apache.org/proper/commons-vfs/</a>)
-sftp:// URI, an http:// URI may be used if the file is accessible
-through a web server, or a file:// URI can be specified if accessing the
-file from a locally-running instance of Chainsaw.</p>
+<p>Log4j maps the concepts above to the specifics of the configuration format as follows:</p>
 </div>
-<div class="paragraph">
-<p>Here is an example advertisement-enabled appender configuration which
-can be used by a locally-running Chainsaw to automatically tail the log
-file (notice the file:// advertiseURI):</p>
+<div id="_tabs_4" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_4_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_4_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_4_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_4_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
 </div>
+<div id="_tabs_4_xml--panel" class="tabpanel" aria-labelledby="_tabs_4_xml">
 <div class="paragraph">
-<p><strong>Please note, you must add the JmDNS library mentioned above.</strong></p>
+<p>Since XML was the original configuration format developed, the mapping from configuration nodes and XML elements is trivial:</p>
 </div>
+<div class="ulist">
+<ul>
+<li>
+<p>Each configuration node is represented by an XML element.</p>
+</li>
+<li>
+<p>Each configuration attribute is represented by an XML attribute.</p>
+</li>
+<li>
+<p>The <strong>plugin type</strong> of a node is equal to the name of the XML tag.</p>
+</li>
+<li>
+<p>Each configuration nested element is represented by a nested XML element.</p>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
+<div class="paragraph">
+<p>There is an alternative XML configuration format called "XML strict format" that is activated by setting the <code>strict</code> attribute of the main <code>&lt;Configuration&gt;</code> element to <code>true</code>.
+It allows users to use any tag names as long as they provide the plugin type using a <code>type</code> property.</p>
+</div>
+<div class="paragraph">
+<p>The <em>XML strict format</em> was conceived as a simplified XML format that can be validated by an XML schema but has fallen into disuse: nowadays, the automatically generated schemas published at <a href="https://logging.apache.org/xml/ns/" class="bare">https://logging.apache.org/xml/ns/</a>
+offer a better alternative and allow users to use a more concise syntax.</p>
+</div>
+</td>
+</tr>
+</table>
+</div>
+</li>
+</ul>
+</div>
+</div>
+<div id="_tabs_4_json--panel" class="tabpanel" aria-labelledby="_tabs_4_json">
+<div class="paragraph">
+<p>In the JSON configuration format:</p>
+</div>
+<div id="configuration-with-json" class="exampleblock">
+<div class="content">
+<div class="ulist">
+<ul>
+<li>
+<p>Each configuration node is represented by a JSON object,</p>
+</li>
+<li>
+<p>JSON properties of type string, number, or boolean are mapped to node attributes.</p>
+</li>
+<li>
+<p>JSON properties of type object or array represent nested configuration elements.</p>
+</li>
+<li>
+<p>The <strong>plugin type</strong> of a JSON object is given by:</p>
+<div class="ulist">
+<ul>
+<li>
+<p>the value of the <code>type</code> key, if present,</p>
+</li>
+<li>
+<p>or the key associated with the JSON object otherwise.</p>
+</li>
+<li>
+<p>If the JSON object representing the node is part of an array, the key associated with the JSON array is used.</p>
+</li>
+</ul>
+</div>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="admonitionblock tip">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-tip" title="Tip"></i>
+</td>
+<td class="content">
+<div class="paragraph">
+<p>If you need to specify multiple plugins of the same type, you can use JSON arrays.
+The snippet below represents two plugins of type <code>File</code>.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
+  "File": [
+    {
+      "name": "file1"
+    },
+    {
+      "name": "file2"
+    }
+  ]
+}</code></pre>
+</div>
+</div>
+</td>
+</tr>
+</table>
+</div>
+</div>
+<div id="_tabs_4_yaml--panel" class="tabpanel" aria-labelledby="_tabs_4_yaml">
+<div class="paragraph">
+<p>In the YAML configuration format:</p>
+</div>
+<div id="configuration-with-yaml" class="exampleblock">
+<div class="content">
+<div class="ulist">
+<ul>
+<li>
+<p>A YAML mapping represents each configuration node,</p>
+</li>
+<li>
+<p>YAML properties of scalar type are mapped to node attributes.</p>
+</li>
+<li>
+<p>YAML properties of collection type are used to represent nested configuration elements.</p>
+</li>
+<li>
+<p>The <strong>plugin type</strong> of a YAML mapping is given by:</p>
+<div class="ulist">
+<ul>
+<li>
+<p>the value of the <code>type</code> key, if present,</p>
+</li>
+<li>
+<p>or the key associated with the YAML mapping otherwise.</p>
+</li>
+<li>
+<p>If the YAML mapping representing the node is part of a YAML block sequence, the key associated with the YAML sequence is used.</p>
+</li>
+</ul>
+</div>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="admonitionblock tip">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-tip" title="Tip"></i>
+</td>
+<td class="content">
+<div class="paragraph">
+<p>If you need to specify multiple plugins of the same type, you can use YAML block sequences.
+The snippet below represents two plugins of type <code>File</code>.</p>
+</div>
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">File:
+  - name: file1
+  - name: file2</code></pre>
+</div>
+</div>
+</td>
+</tr>
+</table>
+</div>
+</div>
+<div id="_tabs_4_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_4_java_properties">
+<div class="admonitionblock warning">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-warning" title="Warning"></i>
+</td>
+<td class="content">
+The Java properties configuration format used in Log4j 2 and Log4j 3 are not compatible.
+</td>
+</tr>
+</table>
+</div>
+<div class="paragraph">
+<p>The Java properties configuration format used in Log4j 3 is based on
+<a href="https://github.com/FasterXML/jackson-dataformats-text/blob/master/properties/README.md"><code>jackson-dataformat-properties</code></a>,</p>
+</div>
+<div id="configuration-with-properties" class="exampleblock">
+<div class="content">
+<div class="ulist">
+<ul>
+<li>
+<p>Each configuration node and its children are represented by a dot <code>.</code> separated prefix (e.g. <code>Appenders.Foo</code>),</p>
+</li>
+<li>
+<p>Configuration attributes are specified by appending the property&#8217;s name (e.g., <code>name</code>) to the prefix of the node, separated by a dot (e.g., <code>Appenders.Foo.name</code>).</p>
+</li>
+<li>
+<p>The <strong>plugin type</strong> if the last component of a node prefix (e.g. <code>Foo</code> for <code>Appenders.Foo</code>),</p>
+</li>
+<li>
+<p>If a node has multiple children of the same type, they can be specified by appending an index marker <code>[&lt;n&gt;]</code> to their prefix, where <code>&lt;n&gt;</code> is an integer starting at <code>1</code>.
+For example <code>Appenders.Foo[1]</code> and <code>Appender.Foo[2]</code>,</p>
+</li>
+<li>
+<p>The plugin type can also be specified by using <strong>any</strong> prefix and setting the <code>type</code> attribute of a node.
+If the configuration node has no other attributes this is the only way to define the node.</p>
+</li>
+</ul>
+</div>
+</div>
+</div>
+<div class="paragraph">
+<p>See
+<a href="https://github.com/FasterXML/jackson-dataformats-text/blob/master/properties/README.md"><code>jackson-dataformat-properties</code> documentation</a>
+for more details.</p>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="main-configuration-elements"><a class="anchor" href="#main-configuration-elements"></a>Main configuration elements</h3>
+<div class="paragraph">
+<p>Log4j Core&#8217;s logging pipeline is quite complex (see <a href="architecture.html" class="xref page">Architecture</a>), but most users only require these elements:</p>
+</div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1">Loggers</dt>
+<dd>
+<div class="paragraph">
+<p>Loggers are the entry point of the logging pipeline, which is directly used in the code.
+Their configuration must specify which level of messages they log and to which appenders they send the messages.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="#configuring-loggers"> Loggers</a> for details.</p>
+</div>
+</dd>
+</dl>
+</div>
+<div id="configuring-appenders" class="dlist">
+<dl>
+<dt class="hdlist1"><a id="Appenders"></a> Appenders</dt>
+<dd>
+<div class="paragraph">
+<p>Appenders are the exit point of the logging pipeline.
+They decide which resource (console, file, database, or similar) the log event is sent to.
+In the examples of this chapter, we will only use the <a href="appenders.html#consoleappender" class="xref page">console appender</a> and the <a href="appenders.html#fileappender" class="xref page">file appender</a>.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="appenders.html" class="xref page">Appender configuration</a> for details.</p>
+</div>
+</dd>
+<dt class="hdlist1">Layouts</dt>
+<dd>
+<div class="paragraph">
+<p>Layouts tell appenders how to format the log event: text, JSON, XML, or similar.
+In the examples of this chapter, we will only use the <a href="layouts.html#pattern-layout" class="xref page">textual pattern layout</a>
+and
+<a href="json-template-layout.html" class="xref page">JSON template layout</a>.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="layouts.html" class="xref page">Layout configuration</a> for details.</p>
+</div>
+</dd>
+</dl>
+</div>
+<div class="paragraph">
+<p>A moderately complex configuration might look like this:</p>
+</div>
+<div id="_tabs_5" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_5_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_5_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_5_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_5_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
+</div>
+<div id="_tabs_5_xml--panel" class="tabpanel" aria-labelledby="_tabs_5_xml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;Configuration xmlns="https://logging.apache.org/xml/ns"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="
+                   https://logging.apache.org/xml/ns
+                   https://logging.apache.org/xml/ns/log4j-config-2.xsd"&gt;
+  &lt;Appenders&gt;
+    &lt;Console name="CONSOLE"&gt; <i class="conum" data-value="1"></i><b>(1)</b>
+      &lt;PatternLayout pattern="%p - %m%n"/&gt;
+    &lt;/Console&gt;
+    &lt;File name="MAIN" fileName="logs/main.log"&gt; <i class="conum" data-value="2"></i><b>(2)</b>
+      &lt;JsonTemplateLayout/&gt;
+    &lt;/File&gt;
+    &lt;File name="DEBUG_LOG" fileName="logs/debug.log"&gt; <i class="conum" data-value="3"></i><b>(3)</b>
+      &lt;PatternLayout pattern="%d [%t] %p %c - %m%n"/&gt;
+    &lt;/File&gt;
+  &lt;/Appenders&gt;
+  &lt;Loggers&gt;
+    &lt;Root level="INFO"&gt; <i class="conum" data-value="4"></i><b>(4)</b>
+      &lt;AppenderRef ref="CONSOLE" level="WARN"/&gt;
+      &lt;AppenderRef ref="MAIN"/&gt;
+    &lt;/Root&gt;
+    &lt;Logger name="org.example" level="DEBUG"&gt; <i class="conum" data-value="5"></i><b>(5)</b>
+      &lt;AppenderRef ref="DEBUG_LOG"/&gt;
+    &lt;/Logger&gt;
+  &lt;/Loggers&gt;
+&lt;/Configuration&gt;</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_5_json--panel" class="tabpanel" aria-labelledby="_tabs_5_json">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
+  "Configuration": {
+    "Appenders": {
+      "Console": { <i class="conum" data-value="1"></i><b>(1)</b>
+        "name": "CONSOLE",
+        "PatternLayout": {
+          "pattern": "%p - %m%n"
+        }
+      },
+      "File": [
+        { <i class="conum" data-value="2"></i><b>(2)</b>
+          "name": "MAIN",
+          "fileName": "logs/main.log",
+          "JsonTemplateLayout": {}
+        },
+        { <i class="conum" data-value="3"></i><b>(3)</b>
+          "name": "DEBUG_LOG",
+          "fileName": "logs/debug.log",
+          "PatternLayout": {
+            "pattern": "%d [%t] %p %c - %m%n"
+          }
+        }
+      ]
+    },
+    "Loggers": {
+      "Root": { <i class="conum" data-value="4"></i><b>(4)</b>
+        "level": "INFO",
+        "AppenderRef": [
+          {
+            "ref": "CONSOLE",
+            "level": "WARN"
+          },
+          {
+            "ref": "MAIN"
+          }
+        ]
+      },
+      "Logger": { <i class="conum" data-value="5"></i><b>(5)</b>
+        "name": "org.example",
+        "level": "DEBUG",
+        "AppenderRef": {
+          "ref": "DEBUG_LOG"
+        }
+      }
+    }
+  }
+}</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_5_yaml--panel" class="tabpanel" aria-labelledby="_tabs_5_yaml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">Configuration:
+  Appenders:
+    Console: <i class="conum" data-value="1"></i><b>(1)</b>
+      name: "CONSOLE"
+      PatternLayout:
+        pattern: "%p - %m%n"
+    File:
+      - name: "MAIN" <i class="conum" data-value="2"></i><b>(2)</b>
+        fileName: "logs/main.log"
+        JsonTemplateLayout: {}
+      - name: "DEBUG_LOG" <i class="conum" data-value="3"></i><b>(3)</b>
+        fileName: "logs/debug.log"
+        PatternLayout:
+          pattern: "%d [%t] %p %c - %m%n"
+  Loggers:
+    Root: <i class="conum" data-value="4"></i><b>(4)</b>
+      level: "INFO"
+      AppenderRef:
+        - ref: "CONSOLE"
+          level: "WARN"
+        - ref: "MAIN"
+      Logger: <i class="conum" data-value="5"></i><b>(5)</b>
+        name: "org.example"
+        level: "DEBUG"
+        AppenderRef:
+          ref: "DEBUG_LOG"</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_5_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_5_java_properties">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Appenders.Console.name = CONSOLE <i class="conum" data-value="1"></i><b>(1)</b>
+Appenders.Console.PatternLayout.pattern = %p - %m%n
+
+Appenders.File[1].name = MAIN <i class="conum" data-value="2"></i><b>(2)</b>
+Appenders.File[1].fileName = logs/main.log
+Appenders.File[1].layout.type = JsonTemplateLayout
+
+Appenders.File[2].name = DEBUG_LOG <i class="conum" data-value="3"></i><b>(3)</b>
+Appenders.File[2].fileName = logs/debug.log
+Appenders.File[2].PatternLayout.pattern = %d [%t] %p %c - %m%n
+
+Loggers.Root.level = INFO <i class="conum" data-value="4"></i><b>(4)</b>
+Loggers.Root.AppenderRef[1].ref = CONSOLE
+Loggers.Root.AppenderRef[1].level = WARN
+Loggers.Root.AppenderRef[2].ref = MAIN
+
+Loggers.Logger.name = org.example <i class="conum" data-value="5"></i><b>(5)</b>
+Loggers.Logger.level = DEBUG
+Loggers.Logger.AppenderRef.ref = DEBUG_LOG</code></pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="colist arabic">
+<table>
+<tr>
+<td><i class="conum" data-value="1"></i><b>1</b></td>
+<td>Configures a console appender named <code>CONSOLE</code> with a pattern layout.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="2"></i><b>2</b></td>
+<td>Configures a file appender named <code>MAIN</code> with a JSON template layout.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="3"></i><b>3</b></td>
+<td>Configures a file appender named <code>DEBUG_LOG</code> with a pattern layout.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="4"></i><b>4</b></td>
+<td>Configures the root logger at level <code>INFO</code> and connects it to the <code>CONSOLE</code> and <code>MAIN</code> appenders.
+The <code>CONSOLE</code> appender will only log messages less specific than <code>WARN</code>.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="5"></i><b>5</b></td>
+<td>Configures a logger named <code>"org.example"</code> at level <code>DEBUG</code> and connects it to the <code>DEBUG_LOG</code> appender.
+The logger is configured to forward messages to its parent (the root appender).</td>
+</tr>
+</table>
+</div>
+<div class="paragraph">
+<p>Using the above configuration, the list of appenders that will be used for each log event depends only on the level of the event and the name of the logger, as in the table below:</p>
+</div>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 22.2222%;">
+<col style="width: 22.2222%;">
+<col style="width: 55.5556%;">
+</colgroup>
+<thead>
+<tr>
+<th class="tableblock halign-left valign-top">Logger name</th>
+<th class="tableblock halign-left valign-top">Log event level</th>
+<th class="tableblock halign-left valign-top">Appenders</th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.example.foo</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>WARN</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>CONSOLE</code>, <code>MAIN</code>, <code>DEBUG_LOG</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.example.foo</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>DEBUG</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>MAIN</code>, <code>DEBUG_LOG</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.example.foo</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>TRACE</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><em>none</em></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>com.example</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>WARN</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>CONSOLE</code>, <code>MAIN</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>com.example</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>INFO</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>MAIN</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>com.example</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>DEBUG</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><em>none</em></p></td>
+</tr>
+</tbody>
+</table>
+</div>
+<div class="sect2">
+<h3 id="additional-configuration-elements"><a class="anchor" href="#additional-configuration-elements"></a>Additional configuration elements</h3>
+<div class="paragraph">
+<p>A Log4j Core configuration file can also contain these configuration elements:</p>
+</div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1">CustomLevels</dt>
+<dd>
+<div class="paragraph">
+<p>Log4j allows the configuration of custom log-level names.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="#manual/customloglevels.adoc" class="xref unresolved">Custom log level configuration</a> for details.</p>
+</div>
+</dd>
+<dt class="hdlist1">Filters</dt>
+<dd>
+<div class="paragraph">
+<p>Users can add Components to loggers, appender references, appenders, or the global configuration object to provide additional filtering of log events.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="filters.html" class="xref page">Filter configuration</a> for details.</p>
+</div>
+</dd>
+<dt class="hdlist1">Properties</dt>
+<dd>
+<div class="paragraph">
+<p>Represent a set of reusable configuration values for property substitution.</p>
+</div>
+<div class="paragraph">
+<p>See <a href="#property-substitution">Property substitution</a> for details.</p>
+</div>
+</dd>
+<dt class="hdlist1">Scripts</dt>
+<dd>
+<div class="paragraph">
+<p>Scripts are a container for JSR 223 scripts that users can use in other Log4j components.</p>
+</div>
+<div class="paragraph">
+<p>For details, see <a href="scripts.html" class="xref page">Scripts configuration</a>.</p>
+</div>
+</dd>
+</dl>
+</div>
+</div>
+<div class="sect2">
+<h3 id="global-configuration-attributes"><a class="anchor" href="#global-configuration-attributes"></a>Global configuration attributes</h3>
+<div class="paragraph">
+<p>The main <code>Configuration</code> element has a set of attributes that can be used to tune how the configuration file is used.
+The principal attributes are listed below.
+See <a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-Configuration" class="xref page">Plugin reference</a> for a complete list.</p>
+</div>
+<div class="sect3">
+<h4 id="configuration-attribute-monitorInterval"><a class="anchor" href="#configuration-attribute-monitorInterval"></a><a id="AutomaticReconfiguration"></a> <code>monitorInterval</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>int</code></p></td>
+</tr>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>0</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>Determines the polling interval used by Log4j to check for changes to the configuration file.
+If a change in the configuration file is detected, Log4j automatically reconfigures the logger context.
+If set to <code>0</code>, polling is disabled.</p>
+</div>
+<div class="admonitionblock caution">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-caution" title="Caution"></i>
+</td>
+<td class="content">
+<div class="paragraph">
+<p>Log4j Core is designed with reliability in mind, unlike other logging backends.</p>
+</div>
+<div class="paragraph">
+<p>During a reconfiguration process, no messages are lost.</p>
+</div>
+<div class="paragraph">
+<p>Unless the new configuration file removes an appender, the old ones work without interruption.</p>
+</div>
+<div class="paragraph">
+<p>Some changed appender options will be <strong>ignored</strong> during reconfiguration.
+For example, appenders that need to close resources, like the append mode used to open a file, will ignore such options.</p>
+</div>
+<div class="paragraph">
+<p>To modify these options during a reconfiguration, you also need to change the resource used by the appender (e.g., the file name used by a file appender).</p>
+</div>
+</td>
+</tr>
+</table>
+</div>
+</div>
+<div class="sect3">
+<h4 id="configuration-attribute-status"><a class="anchor" href="#configuration-attribute-status"></a><code>status</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../javadoc/log4j-api/org/apache/logging/log4j/Level.html">LEVEL</a></p></td>
+</tr>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Status</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><strong>DEPRECATED</strong></p></td>
+</tr>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../../2.x/manual/systemproperties.html#log4j.sta.statusLoggerLevel">log4j2.statusLoggerLevel</a></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>Overrides the logging level of the status logger.</p>
+</div>
+<div class="admonitionblock warning">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-warning" title="Warning"></i>
+</td>
+<td class="content">
+Since 2.24.0 this attribute is deprecated and should be replaced with the
+<a href="../../2.x/manual/systemproperties.html#log4j.sta.statusLoggerLevel">log4j2.statusLoggerLevel</a>
+configuration property.
+</td>
+</tr>
+</table>
+</div>
+</div>
+<div class="sect3">
+<h4 id="configuration-elements-filters"><a class="anchor" href="#configuration-elements-filters"></a>Filters</h4>
+<div class="paragraph">
+<p>See <a href="filters.html#filters" class="xref page">Filters</a> for additional filtering capabilities that can be applied to the global configuration object.</p>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="configuring-loggers"><a class="anchor" href="#configuring-loggers"></a><a id="Loggers"></a> Loggers</h3>
+<div class="paragraph">
+<p>Log4j 2 contains multiple types of logger configurations that can be added to the <code>Loggers</code> element of the configuration:</p>
+</div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1"><code>Root</code></dt>
+<dd>
+<p>is the logger that receives all events that do not have a more specific logger defined.</p>
+<div class="paragraph">
+<p>See also <a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-LoggerConfig-RootLogger" class="xref page">Plugin reference</a>.</p>
+</div>
+</dd>
+<dt class="hdlist1"><code>AsyncRoot</code></dt>
+<dd>
+<p>is an alternative implementation of the root logger used in the <a href="async.html#MixedSync-Async" class="xref page">mixed synchronous and asynchronous mode</a>.</p>
+<div class="paragraph">
+<p>See also <a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-async-AsyncLoggerConfig-RootLogger" class="xref page">Plugin reference</a>.</p>
+</div>
+</dd>
+<dt class="hdlist1"><code>Logger</code></dt>
+<dd>
+<p>the most common logger kind, which collects log events from itself and all the children loggers, which do not have an explicit configuration (see <a href="architecture.html#logger-hierarchy" class="xref page">logger hierarchy</a>).</p>
+<div class="paragraph">
+<p>See also <a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-LoggerConfig" class="xref page">Plugin Reference</a>.</p>
+</div>
+</dd>
+<dt class="hdlist1"><code>AsyncLogger</code></dt>
+<dd>
+<p>the equivalent of <code>Logger</code>, used in the <a href="async.html#MixedSync-Async" class="xref page">mixed synchronous and asynchronous mode</a>.</p>
+<div class="paragraph">
+<p>See also <a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-async-AsyncLoggerConfig" class="xref page">Plugin Reference</a>.</p>
+</div>
+</dd>
+</dl>
+</div>
+<div class="paragraph">
+<p>There <strong>must</strong> be at least a <code>Root</code> or <code>AsyncRoot</code> element in every configuration file.
+Other logger configurations are optional.</p>
+</div>
+<div class="paragraph">
+<p>Every
+<a href="../javadoc/log4j-api/org/apache/logging/log4j/Logger.html">Logger</a>
+in your application is assigned to one of these logger configurations (see
+<a href="architecture.html#loggerconfig" class="xref page">architecture</a>), which determines the events that will be logged and those that won&#8217;t.</p>
+</div>
+<div class="paragraph">
+<p>Let&#8217;s start with an example of logger configuration:</p>
+</div>
+<div id="_tabs_6" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_6_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_6_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_6_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_6_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
+</div>
+<div id="_tabs_6_xml--panel" class="tabpanel" aria-labelledby="_tabs_6_xml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration advertiser="multicastdns"&gt;
-  ...
-  &lt;Appenders&gt;
-    &lt;File name="File1" fileName="output.log" bufferedIO="false" advertiseURI="file://path/to/output.log" advertise="true"&gt;
-    ...
-    &lt;/File&gt;
-  &lt;/Appenders&gt;
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">  &lt;Loggers&gt;
+    &lt;Root level="INFO"&gt; <i class="conum" data-value="1"></i><b>(1)</b>
+      &lt;AppenderRef ref="APPENDER1"/&gt;
+    &lt;/Root&gt;
+    &lt;Logger name="org.example.no_additivity" additivity="false"&gt; <i class="conum" data-value="2"></i><b>(2)</b>
+      &lt;AppenderRef ref="APPENDER2"/&gt;
+    &lt;/Logger&gt;
+    &lt;Logger name="org.example.no_location" includeLocation="false"&gt; <i class="conum" data-value="3"></i><b>(3)</b>
+      &lt;AppenderRef ref="APPENDER3"/&gt;
+    &lt;/Logger&gt;
+    &lt;Logger name="org.example.level" level="DEBUG"&gt; <i class="conum" data-value="4"></i><b>(4)</b>
+      &lt;AppenderRef ref="APPENDER4"/&gt;
+    &lt;/Logger&gt;
+  &lt;/Loggers&gt;</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_6_json--panel" class="tabpanel" aria-labelledby="_tabs_6_json">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">    "Loggers": {
+      "Root": { <i class="conum" data-value="1"></i><b>(1)</b>
+        "level": "INFO",
+        "AppenderRef": {
+          "ref": "APPENDER1"
+        }
+      },
+      "Logger": [
+        { <i class="conum" data-value="2"></i><b>(2)</b>
+          "name": "org.example.no_additivity",
+          "additivity": false,
+          "AppenderRef": {
+            "ref": "APPENDER2"
+          }
+        },
+        { <i class="conum" data-value="3"></i><b>(3)</b>
+          "name": "org.example.no_location",
+          "includeLocation": false,
+          "AppenderRef": {
+            "ref": "APPENDER3"
+          }
+        },
+        { <i class="conum" data-value="4"></i><b>(4)</b>
+          "name": "org.example.level",
+          "level": "DEBUG",
+          "AppenderRef": {
+            "ref": "APPENDER4"
+          }
+        }
+      ]
+    }</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_6_yaml--panel" class="tabpanel" aria-labelledby="_tabs_6_yaml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">  Loggers:
+    Root: <i class="conum" data-value="1"></i><b>(1)</b>
+      level: "INFO"
+      AppenderRef:
+        ref: "APPENDER1"
+    Logger:
+      - name: "org.example.no_additivity" <i class="conum" data-value="2"></i><b>(2)</b>
+        additivity: false
+        AppenderRef:
+          ref: "APPENDER2"
+      - name: "org.example.no_location" <i class="conum" data-value="3"></i><b>(3)</b>
+        includeLocation: false
+        AppenderRef:
+          ref: "APPENDER3"
+      - name: "org.example.level" <i class="conum" data-value="4"></i><b>(4)</b>
+        level: "DEBUG"
+        AppenderRef:
+          ref: "APPENDER4"</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_6_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_6_java_properties">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Loggers.Root.level = INFO <i class="conum" data-value="1"></i><b>(1)</b>
+Loggers.Root.AppenderRef.ref = APPENDER1
+
+Loggers.Logger[1].name = org.example.no_additivity <i class="conum" data-value="2"></i><b>(2)</b>
+Loggers.Logger[1].additivity = false
+Loggers.Logger[1].AppenderRef.ref = APPENDER2
+
+Loggers.Logger[2].name = org.example.no_location <i class="conum" data-value="3"></i><b>(3)</b>
+Loggers.Logger[2].includeLocation = false
+Loggers.Logger[2].AppenderRef.ref = APPENDER3
+
+Loggers.Logger[3].name = org.example.level <i class="conum" data-value="4"></i><b>(4)</b>
+Loggers.Logger[3].level = DEBUG
+Loggers.Logger[3].AppenderRef.ref = APPENDER4</code></pre>
 </div>
 </div>
 </div>
 </div>
-<div class="sect1">
-<h2 id="ConfigurationSyntax"><a class="anchor" href="#ConfigurationSyntax"></a>Configuration Syntax</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>As of version 2.9, for security reasons, Log4j does not process DTD in
-XML files. If you want to split the configuration in multiple files, use
-<a href="#XInclude">XInclude</a> or <a href="#CompositeConfiguration">Composite
-Configuration</a>.</p>
 </div>
 <div class="paragraph">
-<p>As the previous examples have shown as well as those to follow, Log4j
-allows you to easily redefine logging behavior without needing to modify
-your application. It is possible to disable logging for certain parts of
-the application, log only when specific criteria are met such as the
-action being performed for a specific user, route output to Flume or a
-log reporting system, etc. Being able to do this requires understanding
-the syntax of the configuration files.</p>
+<p>In the example above, we have four logger configurations.
+They differ from each other regarding the level of log messages that they allow, whether
+<a href="layouts.html#location-information" class="xref page">location information</a>
+will be printed, and which appenders will be used.
+The table below summarizes the effects of each logger configuration:</p>
 </div>
+<table class="tableblock frame-all grid-all stretch">
+<caption class="title">Table 1. Logger configurations</caption>
+<colgroup>
+<col style="width: 7.1428%;">
+<col style="width: 14.2857%;">
+<col style="width: 14.2857%;">
+<col style="width: 14.2857%;">
+<col style="width: 14.2857%;">
+<col style="width: 35.7144%;">
+</colgroup>
+<tbody>
+<tr>
+<td class="tableblock halign-left valign-top"></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#logger-attributes-name">Logger name</a></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#logger-attributes-level">Level</a></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#logger-attributes-additivity">Additivity</a></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="#logger-attributes-includeLocation">Includes location</a></p></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Appenders used</p></th>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">1</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><em>empty</em></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>INFO</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock">N/A</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><em>default</em></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>APPENDER1</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">2</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.example.no_additivity</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>INFO</code></p>
+<p class="tableblock">(inherited)</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>false</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><em>default</em></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>APPENDER2</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">3</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.example.no_location</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>INFO</code></p>
+<p class="tableblock">(inherited)</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>true</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>false</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>APPENDER1</code> and <code>APPENDER3</code></p></td>
+</tr>
+<tr>
+<td class="tableblock halign-left valign-top"><p class="tableblock">4</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>org.example.level</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>DEBUG</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>true</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><em>default</em></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>APPENDER1</code> and <code>APPENDER4</code></p></td>
+</tr>
+</tbody>
+</table>
 <div class="paragraph">
-<p>The configuration element in the XML file accepts several attributes:</p>
+<p>In the following part of this section, we explain in detail all the available options for logger configurations:</p>
 </div>
+<div class="sect3">
+<h4 id="logger-attributes-name"><a class="anchor" href="#logger-attributes-name"></a><code>name</code></h4>
 <table class="tableblock frame-all grid-all stretch">
 <colgroup>
 <col style="width: 16.6666%;">
 <col style="width: 83.3334%;">
 </colgroup>
-<thead>
-<tr>
-<th class="tableblock halign-left valign-top">Attribute Name</th>
-<th class="tableblock halign-left valign-top">Description</th>
-</tr>
-</thead>
 <tbody>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>advertiser</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>(Optional) The Advertiser plugin name which will be used to
-advertise individual FileAppender or SocketAppender configurations. The
-only Advertiser plugin provided is "multicastdns".</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>dest</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>Either "err" for stderr, "out" for stdout, a file path, or a URL.</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Applies to</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Logger</code> and <code>AsyncLogger</code></p></td>
 </tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>Specifies the name of the logger configuration.</p>
+</div>
+<div class="paragraph">
+<p>Since loggers are usually named using fully qualified class names, this value usually contains the fully qualified name of a class or a package.</p>
+</div>
+</div>
+<div class="sect3">
+<h4 id="logger-attributes-additivity"><a class="anchor" href="#logger-attributes-additivity"></a><a id="Additivity"></a> <code>additivity</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>monitorInterval</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>The minimum amount of time, in seconds, that must
-elapse before the file configuration is checked for changes.</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>boolean</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>name</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>The name of the configuration.</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>true</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>schema</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>Identifies the location for the classloader to located the XML
-Schema to use to validate the configuration. Only valid when strict is
-set to true. If not set no schema validation will take place.</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Applies to</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Logger</code> and <code>AsyncLogger</code></p></td>
 </tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>If <code>true</code> (default), all the messages this logger receives will also be transmitted to its
+<a href="architecture.html#logger-hierarchy" class="xref page">parent logger</a>).</p>
+</div>
+</div>
+<div class="sect3">
+<h4 id="logger-attributes-level"><a class="anchor" href="#logger-attributes-level"></a><code>level</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>shutdownHook</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>Specifies whether or not Log4j should automatically
-shutdown when the JVM shuts down. The shutdown hook is enabled by
-default but may be disabled by setting this attribute to "disable"</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../javadoc/log4j-api/org/apache/logging/log4j/Level.html">Level</a></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>shutdownTimeout</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>Specifies how many milliseconds appenders and
-background tasks will get to shutdown when the JVM shuts down. Default
-is zero which mean that each appender uses its default timeout, and
-don&#8217;t wait for background tasks. Not all appenders will honor this, it
-is a hint and not an absolute guarantee that the shutdown procedure will
-not take longer. Setting this too low increase the risk of losing
-outstanding log events not yet written to the final destination. See
-<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/LoggerContext.html$%7Besc.hash%7Dstop(long,%20java.util.concurrent.TimeUnit)">LoggerContext.stop(long,
-java.util.concurrent.TimeUnit)</a>. (Not used if <code>shutdownHook</code> is set to
-"disable".)</p>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><div class="content"><div class="ulist">
+<ul>
+<li>
+<p><a href="systemproperties.html#log4j.configuration.level" class="xref page">log4j.configuration.level</a>,
+for <code>Root</code> and <code>AsyncRoot</code>,</p>
+</li>
+<li>
+<p>inherited from the
+<a href="architecture.html#logger-hierarchy" class="xref page">parent logger</a>,
+for <code>Logger</code> and <code>AsyncLogger</code>.</p>
+</li>
+</ul>
 </div></div></td>
 </tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>status</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>The level of internal Log4j events that should be logged to the console.
-Valid values for this attribute are "off", "trace", "debug", "info", "warn",
-"error", "fatal", and "all". Log4j will log details about initialization,
-rollover and other internal actions to the status logger. Setting
-<code>status="trace"</code> is one of the first tools available to you if you need
-to troubleshoot log4j.</p>
+</tbody>
+</table>
+<div class="paragraph">
+<p>Specifies the level threshold that a log event must have to be logged.
+Log events that are more specific than this setting will be filtered out.</p>
 </div>
 <div class="paragraph">
-<p>(Alternatively, setting system property <code>log4j2.debug</code> will also print
-internal Log4j2 logging to the console, including internal logging that
-took place before the configuration file was found.)</p>
-</div></div></td>
-</tr>
+<p>See also <a href="filters.html#filters" class="xref page">Filters</a> if you require additional filtering.</p>
+</div>
+</div>
+<div class="sect3">
+<h4 id="logger-attributes-includeLocation"><a class="anchor" href="#logger-attributes-includeLocation"></a><code>includeLocation</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>strict</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>Enables the use of the strict XML format. Not supported in JSON
-configurations.</p>
-</div></div></td>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>boolean</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>verbose</code></p></td>
-<td class="tableblock halign-left valign-top"><div class="content"><div class="paragraph">
-<p>Enables diagnostic information while loading plugins.</p>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><div class="content"><div class="ulist">
+<ul>
+<li>
+<p><code>false</code>, if an asynchronous <code>ContextSelector</code> is used.</p>
+</li>
+<li>
+<p>Otherwise,</p>
+<div class="ulist">
+<ul>
+<li>
+<p><code>true</code> for <code>Root</code> and <code>Logger</code>,</p>
+</li>
+<li>
+<p><code>false</code> for <code>AsyncRoot</code> and <code>AsyncLogger</code>.</p>
+</li>
+</ul>
+</div>
+</li>
+</ul>
+</div>
+<div class="paragraph">
+<p>See
+<a href="systemproperties.html#log4j.loggerContext.selector" class="xref page">log4j.loggerContext.selector</a>
+for more details.</p>
 </div></div></td>
 </tr>
 </tbody>
 </table>
-<div class="sect2">
-<h3 id="XML"><a class="anchor" href="#XML"></a>Configuration with XML</h3>
 <div class="paragraph">
-<p>Log4j can be configured using two XML flavors; concise and strict.</p>
-</div>
+<p>Specifies whether Log4j is allowed to compute location information.
+If set to <code>false</code>, Log4j will not attempt to infer the location of the logging call unless said location was provided explicitly using one of the available
+<a href="https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/LogBuilder.html">LogBuilder
+.withLocation()</a>
+methods.</p>
 </div>
-<div class="sect2">
-<h3 id="_concise_syntax"><a class="anchor" href="#_concise_syntax"></a>Concise Syntax</h3>
 <div class="paragraph">
-<p>The concise format makes configuration very easy as the element names match
-the components they represent however it cannot be validated with an XML
-schema. For example, the ConsoleAppender is configured by declaring an
-XML element named Console under its parent appenders element. However,
-element and attribute names are not case sensitive. In addition,
-attributes can either be specified as an XML attribute or as an XML
-element that has no attributes and has a text value. So</p>
+<p>See <a href="layouts.html#location-information" class="xref page">Location information</a> for more details.</p>
 </div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;PatternLayout pattern="%m%n"/&gt;</code></pre>
 </div>
+<div class="sect3">
+<h4 id="logger-elements-appenderrefs"><a class="anchor" href="#logger-elements-appenderrefs"></a>Appender references</h4>
+<div class="paragraph">
+<p>Loggers use appender references to list the appenders to deliver log events.</p>
 </div>
 <div class="paragraph">
-<p>and</p>
+<p>See <a href="#configuring-appenderrefs">Appender references</a> below for more details.</p>
 </div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;PatternLayout&gt;
-  &lt;Pattern&gt;%m%n&lt;/Pattern&gt;
-&lt;/PatternLayout&gt;</code></pre>
 </div>
+<div class="sect3">
+<h4 id="logger-elements-properties"><a class="anchor" href="#logger-elements-properties"></a>Additional context properties</h4>
+<div class="paragraph">
+<p>Loggers can emit additional context data that will be integrated with other context data sources such as <a href="#manual/thread-context.adoc" class="xref unresolved">ThreadContext</a>.</p>
 </div>
+<div class="admonitionblock caution">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-caution" title="Caution"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>are equivalent.</p>
+<p>The <code>value</code> of each property is subject to <a href="#property-substitution">property substitution</a> twice:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p>when the configuration is loaded,</p>
+</li>
+<li>
+<p>each time a log event is generated.</p>
+</li>
+</ul>
 </div>
 <div class="paragraph">
-<p>The file below represents the structure of an XML configuration, but
-note that the elements in italics below represent the concise element
-names that would appear in their place.</p>
+<p>Therefore, if you wish to insert a value that changes in time, you must double the <code>$</code> sign, as shown in the example below.</p>
+</div>
+</td>
+</tr>
+</table>
+</div>
+<div id="_tabs_7" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_7_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_7_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_7_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_7_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
 </div>
+<div id="_tabs_7_xml--panel" class="tabpanel" aria-labelledby="_tabs_7_xml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;;
-&lt;Configuration&gt;
-  &lt;Properties&gt;
-    &lt;Property name="name1"&gt;value&lt;/property&gt;
-    &lt;Property name="name2" value="value2"/&gt;
-  &lt;/Properties&gt;
-  &lt;filter  ... /&gt;
-  &lt;Appenders&gt;
-    &lt;appender ... &gt;
-      &lt;filter  ... /&gt;
-    &lt;/appender&gt;
-    ...
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="name1"&gt;
-      &lt;filter  ... /&gt;
-    &lt;/Logger&gt;
-    ...
-    &lt;Root level="level"&gt;
-      &lt;AppenderRef ref="name"/&gt;
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">    &lt;Root&gt;
+      &lt;Property name="client.address" value="$${web:request.remoteAddress}"/&gt;
     &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>See the many examples on this page for sample appender, filter and
-logger declarations.</p>
+    &lt;Logger name="org.hibernate"&gt;
+      &lt;Property name="subsystem" value="Database"/&gt;
+    &lt;/Logger&gt;
+    &lt;Logger name="io.netty"&gt;
+      &lt;Property name="subsystem" value="Networking"/&gt;
+    &lt;/Logger&gt;</code></pre>
 </div>
 </div>
-<div class="sect2">
-<h3 id="_strict_xml"><a class="anchor" href="#_strict_xml"></a>Strict XML</h3>
-<div class="paragraph">
-<p>In addition to the concise XML format above, Log4j allows configurations
-to be specified in a more "normal" XML manner that can be validated
-using an XML Schema. This is accomplished by replacing the friendly
-element names above with their object type as shown below. For example,
-instead of the ConsoleAppender being configured using an element named
-Console it is instead configured as an appender element with a type
-attribute containing "Console".</p>
 </div>
+<div id="_tabs_7_json--panel" class="tabpanel" aria-labelledby="_tabs_7_json">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration&gt;
-  &lt;Properties&gt;
-    &lt;Property name="name1"&gt;value&lt;/property&gt;
-    &lt;Property name="name2" value="value2"/&gt;
-  &lt;/Properties&gt;
-  &lt;Filter type="type" ... /&gt;
-  &lt;Appenders&gt;
-    &lt;Appender type="type" name="name"&gt;
-      &lt;Filter type="type" ... /&gt;
-    &lt;/Appender&gt;
-    ...
-  &lt;/Appenders&gt;
-  &lt;Loggers&gt;
-    &lt;Logger name="name1"&gt;
-      &lt;Filter type="type" ... /&gt;
-    &lt;/Logger&gt;
-    ...
-    &lt;Root level="level"&gt;
-      &lt;AppenderRef ref="name"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">      "Root": {
+        "Property": {
+          "name": "client.address",
+          "value": "$${web:request.remoteAddress}"
+        }
+      },
+      "Logger": [
+        {
+          "name": "org.hibernate",
+          "Property": {
+            "subsystem": "Database"
+          }
+        },
+        {
+          "name": "io.netty",
+          "Property": {
+            "subsystem": "Networking"
+          }
+        }
+      ]</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>Below is a sample configuration using the strict format.</p>
 </div>
+<div id="_tabs_7_yaml--panel" class="tabpanel" aria-labelledby="_tabs_7_yaml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="debug" strict="true" name="XMLConfigTest"
-               packages="org.apache.logging.log4j.test"&gt;
-  &lt;Properties&gt;
-    &lt;Property name="filename"&gt;target/test.log&lt;/Property&gt;
-  &lt;/Properties&gt;
-  &lt;Filter type="ThresholdFilter" level="trace"/&gt;
-
-  &lt;Appenders&gt;
-    &lt;Appender type="Console" name="STDOUT"&gt;
-      &lt;Layout type="PatternLayout" pattern="%m MDC%X%n"/&gt;
-      &lt;Filters&gt;
-        &lt;Filter type="MarkerFilter" marker="FLOW" onMatch="DENY" onMismatch="NEUTRAL"/&gt;
-        &lt;Filter type="MarkerFilter" marker="EXCEPTION" onMatch="DENY" onMismatch="ACCEPT"/&gt;
-      &lt;/Filters&gt;
-    &lt;/Appender&gt;
-    &lt;Appender type="Console" name="FLOW"&gt;
-      &lt;Layout type="PatternLayout" pattern="%C{1}.%M %m %ex%n"/&gt;&lt;!-- class and line number --&gt;
-      &lt;Filters&gt;
-        &lt;Filter type="MarkerFilter" marker="FLOW" onMatch="ACCEPT" onMismatch="NEUTRAL"/&gt;
-        &lt;Filter type="MarkerFilter" marker="EXCEPTION" onMatch="ACCEPT" onMismatch="DENY"/&gt;
-      &lt;/Filters&gt;
-    &lt;/Appender&gt;
-    &lt;Appender type="File" name="File" fileName="${filename}"&gt;
-      &lt;Layout type="PatternLayout"&gt;
-        &lt;Pattern&gt;%d %p %C{1.} [%t] %m%n&lt;/Pattern&gt;
-      &lt;/Layout&gt;
-    &lt;/Appender&gt;
-  &lt;/Appenders&gt;
-
-  &lt;Loggers&gt;
-    &lt;Logger name="org.apache.logging.log4j.test1" level="debug" additivity="false"&gt;
-      &lt;Filter type="ThreadContextMapFilter"&gt;
-        &lt;KeyValuePair key="test" value="123"/&gt;
-      &lt;/Filter&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Logger&gt;
-
-    &lt;Logger name="org.apache.logging.log4j.test2" level="debug" additivity="false"&gt;
-      &lt;AppenderRef ref="File"/&gt;
-    &lt;/Logger&gt;
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">    Root:
+      Property:
+        name: "client.address"
+        value: "$${web:request.remoteAddress}"
+    Logger:
+      - name: "org.hibernate"
+        Property:
+          name: "subsystem"
+          value: "Database"
+      - name: "io.netty"
+        Property:
+          name: "subsystem"
+          value: "Networking"</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_7_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_7_java_properties">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Loggers.Root.Property.name = client.address
+Loggers.Root.Property.value = $${web:request.remoteAddress}
 
-    &lt;Root level="trace"&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
+Loggers.Logger[1].name = org.hibernate
+Loggers.Logger[1].Property.name = subsystem
+Loggers.Logger[1].Property.value = Database
 
-&lt;/Configuration&gt;</code></pre>
+Loggers.Logger[2].name = io.netty
+Loggers.Logger[2].Property.name = subsystem
+Loggers.Logger[2].Property.value = Networking</code></pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="sect3">
+<h4 id="logger-elements-filters"><a class="anchor" href="#logger-elements-filters"></a>Filters</h4>
+<div class="paragraph">
+<p>See <a href="filters.html#filters" class="xref page">Filters</a> for additional filtering capabilities that can be applied to a logger configuration.</p>
+</div>
+</div>
+</div>
+<div class="sect2">
+<h3 id="configuring-appenderrefs"><a class="anchor" href="#configuring-appenderrefs"></a>Appender references</h3>
+<div class="paragraph">
+<p>Many Log4j components, such as loggers, use appender references to designate which appenders will be used to deliver their events.</p>
+</div>
+<div class="paragraph">
+<p>Unlike in Log4j 1, where appender references were simple pointers, in Log4j 2, they have additional filtering capabilities.</p>
+</div>
+<div class="paragraph">
+<p>Appender references can have the following configuration attributes and elements:</p>
+</div>
+<div class="sect3">
+<h4 id="appenderref-attributes-name"><a class="anchor" href="#appenderref-attributes-name"></a><code>ref</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>String</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>Specifies the name of the appender to use.</p>
+</div>
+</div>
+<div class="sect3">
+<h4 id="appenderref-attributes-level"><a class="anchor" href="#appenderref-attributes-level"></a><code>level</code></h4>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><a href="../javadoc/log4j-api/org/apache/logging/log4j/Level.html">Level</a></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>Specifies the level threshold that a log event must have to be logged.
+Log events that are more specific than this setting will be filtered out.</p>
+</div>
+</div>
+<div class="sect3">
+<h4 id="appenderrefs-elements-filters"><a class="anchor" href="#appenderrefs-elements-filters"></a>Filters</h4>
+<div class="paragraph">
+<p>See <a href="filters.html#filters" class="xref page">Filters</a> for additional filtering capabilities that can be applied to a logger configuration.</p>
 </div>
 </div>
 </div>
 <div class="sect2">
-<h3 id="JSON"><a class="anchor" href="#JSON"></a>Configuration with JSON</h3>
+<h3 id="property-substitution"><a class="anchor" href="#property-substitution"></a>Property substitution</h3>
+<div class="paragraph">
+<p>Log4j provides a simple and extensible mechanism to reuse values in the configuration file using <code>${name}</code> expressions, such as those used in Bash, Ant or Maven.</p>
+</div>
 <div class="paragraph">
-<p>In addition to XML, Log4j can be configured using JSON. The JSON format
-is very similar to the concise XML format. Each key represents the name
-of a plugin and the key/value pairs associated with it are its
-attributes. Where a key contains more than a simple value it itself will
-be a subordinate plugin. In the example below, ThresholdFilter, Console,
-and PatternLayout are all plugins while the Console plugin will be
-assigned a value of STDOUT for its name attribute and the
-ThresholdFilter will be assigned a level of debug.</p>
+<p>Reusable configuration values can be added directly to a configuration file by using a <a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-PropertiesPlugin" class="xref page">Properties</a> component.</p>
+</div>
+<div id="_tabs_8" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_8_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_8_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_8_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_8_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
 </div>
+<div id="_tabs_8_xml--panel" class="tabpanel" aria-labelledby="_tabs_8_xml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{ "configuration": { "status": "error", "name": "RoutingTest",
-                     "packages": "org.apache.logging.log4j.test",
-      "properties": {
-        "property": { "name": "filename",
-                      "value" : "target/rolling1/rollingtest-$${sd:type}.log" }
-      },
-    "ThresholdFilter": { "level": "debug" },
-    "appenders": {
-      "Console": { "name": "STDOUT",
-        "PatternLayout": { "pattern": "%m%n" },
-        "ThresholdFilter": { "level": "debug" }
-      },
-      "Routing": { "name": "Routing",
-        "Routes": { "pattern": "$${sd:type}",
-          "Route": [
-            {
-              "RollingFile": {
-                "name": "Rolling-${sd:type}", "fileName": "${filename}",
-                "filePattern": "target/rolling1/test1-${sd:type}.%i.log.gz",
-                "PatternLayout": {"pattern": "%d %p %c{1.} [%t] %m%n"},
-                "SizeBasedTriggeringPolicy": { "size": "500" }
-              }
-            },
-            { "AppenderRef": "STDOUT", "key": "Audit"}
-          ]
-        }
-      }
-    },
-    "loggers": {
-      "logger": { "name": "EventLogger", "level": "info", "additivity": "false",
-                  "AppenderRef": { "ref": "Routing" }},
-      "root": { "level": "error", "AppenderRef": { "ref": "STDOUT" }}
-    }
-  }
-}</code></pre>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;Configuration xmlns="https://logging.apache.org/xml/ns"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="
+                   https://logging.apache.org/xml/ns
+                   https://logging.apache.org/xml/ns/log4j-config-2.xsd"&gt;
+  &lt;Properties&gt;
+    &lt;Property name="log.dir" value="/var/log"/&gt;
+  &lt;/Properties&gt;</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>Note that in the RoutingAppender the Route element has been declared as
-an array. This is valid because each array element will be a Route
-component. This won&#8217;t work for elements such as appenders and filters,
-where each element has a different name in the concise format. Appenders
-and filters can be defined as array elements if each appender or filter
-declares an attribute named "type" that contains the type of the
-appender. The following example illustrates this as well as how to
-declare multiple loggers as an array.</p>
 </div>
+<div id="_tabs_8_json--panel" class="tabpanel" aria-labelledby="_tabs_8_json">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{ "configuration": { "status": "debug", "name": "RoutingTest",
-                      "packages": "org.apache.logging.log4j.test",
-      "properties": {
-        "property": { "name": "filename",
-                      "value" : "target/rolling1/rollingtest-$${sd:type}.log" }
-      },
-    "ThresholdFilter": { "level": "debug" },
-    "appenders": {
-      "appender": [
-         { "type": "Console", "name": "STDOUT", "PatternLayout": { "pattern": "%m%n" }, "ThresholdFilter": { "level": "debug" }},
-         { "type": "Routing",  "name": "Routing",
-          "Routes": { "pattern": "$${sd:type}",
-            "Route": [
-              {
-                "RollingFile": {
-                  "name": "Rolling-${sd:type}", "fileName": "${filename}",
-                  "filePattern": "target/rolling1/test1-${sd:type}.%i.log.gz",
-                  "PatternLayout": {"pattern": "%d %p %c{1.} [%t] %m%n"},
-                  "SizeBasedTriggeringPolicy": { "size": "500" }
-                }
-              },
-              { "AppenderRef": "STDOUT", "key": "Audit"}
-            ]
-          }
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
+  "Configuration": {
+    "Properties": {
+      "Property": [
+        {
+          "name": "log.dir",
+          "value": "/var/log"
+        },
+        {
+          "name": "log.file",
+          "value": "${log.dir}/app.log"
         }
       ]
-    },
-    "loggers": {
-      "logger": [
-        { "name": "EventLogger", "level": "info", "additivity": "false",
-          "AppenderRef": { "ref": "Routing" }},
-        { "name": "com.foo.bar", "level": "error", "additivity": "false",
-          "AppenderRef": { "ref": "STDOUT" }}
-      ],
-      "root": { "level": "error", "AppenderRef": { "ref": "STDOUT" }}
     }
+    // ...
   }
 }</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>Additional <a href="#runtime-dependencies.adoc" class="xref unresolved">runtime dependencies</a> are
-required for using JSON configuration files.</p>
+</div>
+<div id="_tabs_8_yaml--panel" class="tabpanel" aria-labelledby="_tabs_8_yaml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">Configuration:
+  Properties:
+    Property:
+      - name: "log.dir"
+        value: "/var/log"
+      - name: "log.file"
+        value: "${log.dir}/app.log"
+# ...</code></pre>
 </div>
 </div>
-<div class="sect2">
-<h3 id="YAML"><a class="anchor" href="#YAML"></a>Configuration with YAML</h3>
-<div class="paragraph">
-<p>Log4j also supports using YAML for configuration files. The structure
-follows the same pattern as both the XML and YAML configuration formats.
-For example:</p>
 </div>
+<div id="_tabs_8_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_8_java_properties">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">Configuration:
-  status: warn
-  name: YAMLConfigTest
-  properties:
-    property:
-      name: filename
-      value: target/test-yaml.log
-  thresholdFilter:
-    level: debug
-  appenders:
-    Console:
-      name: STDOUT
-      target: SYSTEM_OUT
-      PatternLayout:
-        Pattern: "%m%n"
-    File:
-      name: File
-      fileName: ${filename}
-      PatternLayout:
-        Pattern: "%d %p %C{1.} [%t] %m%n"
-      Filters:
-        ThresholdFilter:
-          level: error
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Properties.Property[1].name = log.dir
+Properties.Property[1].value = /var/log
 
-  Loggers:
-    logger:
-      -
-        name: org.apache.logging.log4j.test1
-        level: debug
-        additivity: false
-        ThreadContextMapFilter:
-          KeyValuePair:
-            key: test
-            value: 123
-        AppenderRef:
-          ref: STDOUT
-      -
-        name: org.apache.logging.log4j.test2
-        level: debug
-        additivity: false
-        AppenderRef:
-          ref: File
-    Root:
-      level: error
-      AppenderRef:
-        ref: STDOUT</code></pre>
+Properties.Property[2].name = /var/log
+Properties.Property[2].value = ${log.dir}/app.log
+# ...</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>Additional <a href="#runtime-dependencies.adoc" class="xref unresolved">runtime dependencies</a> are
-required for using YAML configuration files.</p>
 </div>
 </div>
-<div class="sect2">
-<h3 id="Properties"><a class="anchor" href="#Properties"></a>Configuration with Properties</h3>
-<div class="paragraph">
-<p>As of version 2.4, Log4j now supports configuration via properties
-files. Note that the property syntax is NOT the same as the syntax used
-in Log4j 1. Like the XML and JSON configurations, properties
-configurations define the configuration in terms of plugins and
-attributes to the plugins.</p>
 </div>
 <div class="paragraph">
-<p>Prior to version 2.6, the properties configuration requires that you
-list the identifiers of the appenders, filters and loggers, in a comma
-separated list in properties with those names. Each of those components
-will then be expected to be defined in sets of properties that begin
-with <em>component.&lt;.identifier&gt;.</em>. The identifier does not have to match
-the name of the component being defined but must uniquely identify all
-the attributes and subcomponents that are part of the component. If the
-list of identifiers is not present the identifier must not contain a '.'.
-Each individual component MUST have a "type" attribute specified that
-identifies the component&#8217;s Plugin type.</p>
+<p>An extensible lookup mechanism can also provide reusable configuration values.
+See <a href="lookups.html" class="xref page">Lookup</a>s for more information.</p>
 </div>
 <div class="paragraph">
-<p>As of version 2.6, this list of identifiers is no longer required as
-names are inferred upon first usage, however if you wish to use more
-complex identifies you must still use the list. If the list is present
-it will be used.</p>
+<p>Configuration values defined this way can be used in <strong>any</strong> configuration attribute by using the following expansion rules:</p>
 </div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1"><code>${name}</code></dt>
+<dd>
 <div class="paragraph">
-<p>Unlike the base components, when creating subcomponents you cannot
-specify an element containing a list of identifiers. Instead, you must
-define the wrapper element with its type as is shown in the policies
-definition in the rolling file appender below. You then define each of
-the subcomponents below that wrapper element, as the
-TimeBasedTriggeringPolicy and SizeBasedTriggeringPolicy are defined
-below.</p>
+<p>If the <code>Properties</code> element of the configuration file has a property named <code>name</code>, its value is substituted.
+Otherwise, the placeholder is not expanded.</p>
 </div>
+<div class="admonitionblock warning">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-warning" title="Warning"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>As of version 2.17.2, <code>rootLogger</code> and <code>logger.<em>key</em></code> properties can be specified to set the
-level and zero or more appender refs to create for that logger. The level and appender refs are
-separated by comma <code>,</code> characters with optional whitespace surrounding the comma. The
-following example demonstrates how the shorthand is expanded when reading properties configurations.</p>
+<p>If <code>name</code> contains a <code>:</code> character, it is expanded as in the rule below.</p>
 </div>
-<div class="listingblock">
+</td>
+</tr>
+</table>
+</div>
+</dd>
+<dt class="hdlist1"><code>${lookup:name}</code></dt>
+<dd>
+<p>If both these conditions hold:</p>
+<div class="openblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">appender.stdout.type = Console
-# ... other appender properties
-appender.file.type = File
-# ... other appender properties
-logger.app = INFO, stdout, file
-logger.app.name = com.example.app
-
-# is equivalent to:
-# appender.stdout.type = Console
-# appender.stdout.name = stdout
-# ...
-appender.file.type = File
-appender.file.name = file
-# ...
-logger.app.name = com.example.app
-logger.app.level = INFO
-logger.app.appenderRef.$1.ref = stdout
-logger.app.appenderRef.$2.ref = file</code></pre>
+<div class="ulist">
+<ul>
+<li>
+<p><code>lookup</code> is a prefix assigned to a <a href="lookups.html" class="xref page">Lookup</a>,</p>
+</li>
+<li>
+<p>the lookup has a value assigned to <code>name</code>,</p>
+</li>
+</ul>
+</div>
 </div>
 </div>
 <div class="paragraph">
-<p>Properties configuration files support the advertiser, monitorInterval,
-name, packages, shutdownHook, shutdownTimeout, status, verbose, and dest
-attributes. See <a href="#ConfigurationSyntax">Configuration Syntax</a> for the
-definitions of these attributes.</p>
+<p>the value for the lookup is substituted.
+Otherwise, the expansion of <code>${name}</code> is substituted.</p>
 </div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">status = error
-dest = err
-name = PropertiesConfig
-
-property.filename = target/rolling/rollingtest.log
-
-filter.threshold.type = ThresholdFilter
-filter.threshold.level = debug
-
-appender.console.type = Console
-appender.console.name = STDOUT
-appender.console.layout.type = PatternLayout
-appender.console.layout.pattern = %m%n
-appender.console.filter.threshold.type = ThresholdFilter
-appender.console.filter.threshold.level = error
-
-appender.rolling.type = RollingFile
-appender.rolling.name = RollingFile
-appender.rolling.fileName = ${filename}
-appender.rolling.filePattern = target/rolling2/test1-%d{MM-dd-yy-HH-mm-ss}-%i.log.gz
-appender.rolling.layout.type = PatternLayout
-appender.rolling.layout.pattern = %d %p %C{1.} [%t] %m%n
-appender.rolling.policies.type = Policies
-appender.rolling.policies.time.type = TimeBasedTriggeringPolicy
-appender.rolling.policies.time.interval = 2
-appender.rolling.policies.time.modulate = true
-appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
-appender.rolling.policies.size.size=100MB
-appender.rolling.strategy.type = DefaultRolloverStrategy
-appender.rolling.strategy.max = 5
-
-logger.rolling.name = com.example.my.app
-logger.rolling.level = debug
-logger.rolling.additivity = false
-logger.rolling.appenderRef.rolling.ref = RollingFile
-
-rootLogger.level = info
-rootLogger.appenderRef.stdout.ref = STDOUT</code></pre>
+<div class="paragraph">
+<p>If <code>name</code> starts with a hyphen <code>-</code> (e.g. <code>-variable</code>), it must be escaped with a backslash <code>\</code> (e.g. <code>\-variable</code>).</p>
 </div>
+<div class="paragraph">
+<p>The most common lookup prefixes are:</p>
 </div>
+<div class="ulist">
+<ul>
+<li>
+<p><code>sys</code> for Java system properties (see <a href="lookups.html#system-properties-lookup" class="xref page">System Properties lookup</a>),</p>
+</li>
+<li>
+<p><code>env</code> for environment variables (see <a href="lookups.html#environment-lookup" class="xref page">Environment lookup</a>).</p>
+</li>
+</ul>
 </div>
-<div class="sect2">
-<h3 id="Loggers"><a class="anchor" href="#Loggers"></a>Configuring Loggers</h3>
-<div class="paragraph">
-<p>An understanding of how loggers work in Log4j is critical before trying
-to configure them. Please reference the Log4j
-<a href="architecture.html" class="xref page">architecture</a> if more information is required.
-Trying to configure Log4j without understanding those concepts will lead
-to frustration.</p>
+</dd>
+</dl>
 </div>
 <div class="paragraph">
-<p>A LoggerConfig is configured using the <code>logger</code> element. The <code>logger</code>
-element must have a name attribute specified, will usually have a level
-attribute specified and may also have an additivity attribute specified.
-The level may be configured with one of TRACE, DEBUG, INFO, WARN, ERROR,
-ALL or OFF. If no level is specified it will default to ERROR. The
-additivity attribute may be assigned a value of true or false. If the
-attribute is omitted the default value of true will be used.</p>
+<p>The above expansions have a version with an additional <code>default</code> value that is <strong>expanded</strong> if the lookup fails:</p>
 </div>
+<div class="dlist">
+<dl>
+<dt class="hdlist1"><code>${name:-default}</code></dt>
+<dd>
 <div class="paragraph">
-<p>Capturing location information (the class name, file name, method name, and line number of the caller)
-can be slow. Log4j tries to optimize this by reducing the size of the stack that must be traversed
-to find the caller of the logging method. It does this by determining if any component that might
-be accessed requires location information. This can cause performance issues if a logger is configured
-at a level like trace or debug with the expectation that most logs will be filtered on an Appender
-reference or Appender as Log4j will calculate the location information even though the log event
-is going to be discarded. To disable this behavior the <code>includeLocation</code> attribute
-can be set to false on the LoggerConfig. This will cause Log4j to defer calculating the location
-information until absolutely necessary.</p>
+<p>If the <code>Properties</code> element of the configuration file has a property named <code>name,</code> its value is substituted.
+Otherwise, the <strong>expansion</strong> of <code>default</code> is substituted.</p>
 </div>
+<div class="admonitionblock warning">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-warning" title="Warning"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>A LoggerConfig (including the root LoggerConfig) can be configured with
-properties that will be added to the properties copied from the
-ThreadContextMap. These properties can be referenced from Appenders,
-Filters, Layouts, etc just as if they were part of the ThreadContext
-Map. The properties can contain variables that will be resolved either
-when the configuration is parsed or dynamically when each event is
-logged. See <a href="#PropertySubstitution">Property Substitution</a> for more
-information on using variables.</p>
+<p>If <code>name</code> contains a <code>:</code> character, it is expanded as in the rule below.</p>
 </div>
-<div class="paragraph">
-<p>The LoggerConfig may also be configured with one or more AppenderRef
-elements. Each appender referenced will become associated with the
-specified LoggerConfig. If multiple appenders are configured on the
-LoggerConfig each of them be called when processing logging events.</p>
+</td>
+</tr>
+</table>
 </div>
+</dd>
+<dt class="hdlist1"><code>${lookup:name:-default}</code></dt>
+<dd>
 <div class="paragraph">
-<p><strong><em>Every configuration must have a root logger</em></strong>. If one is not
-configured the default root LoggerConfig, which has a level of ERROR and
-has a Console appender attached, will be used. The main differences
-between the root logger and other loggers are</p>
+<p>If both these conditions hold:</p>
 </div>
-<div class="olist arabic">
-<ol class="arabic">
+<div class="openblock">
+<div class="content">
+<div class="ulist">
+<ul>
 <li>
-<p>The root logger does not have a name attribute.</p>
+<p><code>lookup</code> is a prefix assigned to a <a href="lookups.html" class="xref page">Lookup</a>,</p>
 </li>
 <li>
-<p>The root logger does not support the additivity attribute since it
-has no parent.</p>
+<p>the lookup has a value assigned to <code>name,</code></p>
 </li>
-</ol>
+</ul>
+</div>
 </div>
 </div>
-<div class="sect2">
-<h3 id="Appenders"><a class="anchor" href="#Appenders"></a>Configuring Appenders</h3>
 <div class="paragraph">
-<p>An appender is configured either using the specific appender plugin&#8217;s
-name or with an appender element and the type attribute containing the
-appender plugin&#8217;s name. In addition each appender must have a name
-attribute specified with a value that is unique within the set of
-appenders. The name will be used by loggers to reference the appender as
-described in the previous section.</p>
+<p>the value for the lookup is substituted.
+Otherwise, the expansion of <code>${name:-default}</code> is substituted.</p>
 </div>
+</dd>
+</dl>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
 <div class="paragraph">
-<p>Most appenders also support a layout to be configured (which again may
-be specified either using the specific Layout plugin&#8217;s name as the
-element or with "layout" as the element name along with a type attribute
-that contains the layout plugin&#8217;s name. The various appenders will
-contain other attributes or elements that are required for them to
-function properly.</p>
+<p>To prevent the expansion of one of the expressions above, the initial <code>$</code> must be doubled as <code>$$</code>.</p>
 </div>
+<div class="paragraph">
+<p>The same rule applies to the <code>name</code> parameter: if it contains a <code>${</code> sequence, it must be escaped as <code>$${</code>.</p>
 </div>
-<div class="sect2">
-<h3 id="Filters"><a class="anchor" href="#Filters"></a>Configuring Filters</h3>
+</td>
+</tr>
+</table>
+</div>
+<div class="exampleblock">
+<div class="title">Example 1. Property substitution example</div>
+<div class="content">
 <div class="paragraph">
-<p>Log4j allows a filter to be specified in any of 4 places:</p>
+<p>If your configuration file contains the following definitions:</p>
 </div>
-<div class="olist arabic">
-<ol class="arabic">
-<li>
-<p>At the same level as the appenders, loggers and properties elements.
-These filters can accept or reject events before they have been passed
-to a LoggerConfig.</p>
+<div id="_tabs_9" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_9_xml" class="tab">
+<p>XML</p>
 </li>
-<li>
-<p>In a logger element. These filters can accept or reject events for
-specific loggers.</p>
+<li id="_tabs_9_json" class="tab">
+<p>JSON</p>
 </li>
-<li>
-<p>In an appender element. These filters can prevent or cause events to
-be processed by the appender.</p>
+<li id="_tabs_9_yaml" class="tab">
+<p>YAML</p>
 </li>
-<li>
-<p>In an appender reference element. These filters are used to
-determine if a Logger should route the event to an appender.</p>
+<li id="_tabs_9_java_properties" class="tab">
+<p>Java properties</p>
 </li>
-</ol>
+</ul>
+</div>
+<div id="_tabs_9_xml--panel" class="tabpanel" aria-labelledby="_tabs_9_xml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Properties&gt;
+  &lt;Property name="FOO" value="foo"/&gt;
+  &lt;Property name="BAR" value="bar"/&gt;
+&lt;/Properties&gt;</code></pre>
 </div>
-<div class="paragraph">
-<p>Although only a single <code>filter</code> element can be configured, that element
-may be the <code>filters</code> element which represents the CompositeFilter. The
-<code>filters</code> element allows any number of <code>filter</code> elements to be
-configured within it. The following example shows how multiple filters
-can be configured on the ConsoleAppender.</p>
 </div>
+</div>
+<div id="_tabs_9_json--panel" class="tabpanel" aria-labelledby="_tabs_9_json">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="debug" name="XMLConfigTest" packages="org.apache.logging.log4j.test"&gt;
-  &lt;Properties&gt;
-    &lt;Property name="filename"&gt;target/test.log&lt;/Property&gt;
-  &lt;/Properties&gt;
-  &lt;ThresholdFilter level="trace"/&gt;
-
-  &lt;Appenders&gt;
-    &lt;Console name="STDOUT"&gt;
-      &lt;PatternLayout pattern="%m MDC%X%n"/&gt;
-    &lt;/Console&gt;
-    &lt;Console name="FLOW"&gt;
-      &lt;!-- this pattern outputs class name and line number --&gt;
-      &lt;PatternLayout pattern="%C{1}.%M %m %ex%n"/&gt;
-      &lt;filters&gt;
-        &lt;MarkerFilter marker="FLOW" onMatch="ACCEPT" onMismatch="NEUTRAL"/&gt;
-        &lt;MarkerFilter marker="EXCEPTION" onMatch="ACCEPT" onMismatch="DENY"/&gt;
-      &lt;/filters&gt;
-    &lt;/Console&gt;
-    &lt;File name="File" fileName="${filename}"&gt;
-      &lt;PatternLayout&gt;
-        &lt;pattern&gt;%d %p %C{1.} [%t] %m%n&lt;/pattern&gt;
-      &lt;/PatternLayout&gt;
-    &lt;/File&gt;
-  &lt;/Appenders&gt;
-
-  &lt;Loggers&gt;
-    &lt;Logger name="org.apache.logging.log4j.test1" level="debug" additivity="false"&gt;
-      &lt;ThreadContextMapFilter&gt;
-        &lt;KeyValuePair key="test" value="123"/&gt;
-      &lt;/ThreadContextMapFilter&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Logger&gt;
-
-    &lt;Logger name="org.apache.logging.log4j.test2" level="debug" additivity="false"&gt;
-      &lt;Property name="user"&gt;${sys:user.name}&lt;/Property&gt;
-      &lt;AppenderRef ref="File"&gt;
-        &lt;ThreadContextMapFilter&gt;
-          &lt;KeyValuePair key="test" value="123"/&gt;
-        &lt;/ThreadContextMapFilter&gt;
-      &lt;/AppenderRef&gt;
-      &lt;AppenderRef ref="STDOUT" level="error"/&gt;
-    &lt;/Logger&gt;
-
-    &lt;Root level="trace"&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
+  "Properties": {
+    "Property": [
+      {
+        "name": "FOO",
+        "value": "foo"
+      },
+      {
+        "name": "BAR",
+        "value": "bar"
+      }
+    ]
+  }
+}</code></pre>
 </div>
 </div>
 </div>
+<div id="_tabs_9_yaml--panel" class="tabpanel" aria-labelledby="_tabs_9_yaml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">Properties:
+  Property:
+    - name: "FOO"
+      value: "foo"
+    - name: "BAR"
+      value: "bar"</code></pre>
 </div>
 </div>
-<div class="sect1">
-<h2 id="PropertySubstitution"><a class="anchor" href="#PropertySubstitution"></a>Property Substitution</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Log4j 2 supports the ability to specify tokens in the configuration as
-references to properties defined elsewhere. Some of these properties
-will be resolved when the configuration file is interpreted while others
-may be passed to components where they will be evaluated at runtime. To
-accomplish this, Log4j uses variations of
-<a href="https://commons.apache.org/proper/commons-lang/">Apache Commons Lang</a>'s
-<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/lookup/StrSubstitutor.html"><code>StrSubstitutor</code></a>
-and
-<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/lookup/StrLookup.html"><code>StrLookup</code></a>
-classes. In a manner similar to Ant or Maven, this allows variables
-declared as <code>${name}</code> to be resolved using properties declared in the
-configuration itself. For example, the following example shows the
-filename for the rolling file appender being declared as a property.</p>
 </div>
+<div id="_tabs_9_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_9_java_properties">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="debug" name="RoutingTest" packages="org.apache.logging.log4j.test"&gt;
-  &lt;Properties&gt;
-    &lt;Property name="filename"&gt;target/rolling1/rollingtest-$${sd:type}.log&lt;/Property&gt;
-  &lt;/Properties&gt;
-  &lt;ThresholdFilter level="debug"/&gt;
-
-  &lt;Appenders&gt;
-    &lt;Console name="STDOUT"&gt;
-      &lt;PatternLayout pattern="%m%n"/&gt;
-      &lt;ThresholdFilter level="debug"/&gt;
-    &lt;/Console&gt;
-    &lt;Routing name="Routing"&gt;
-      &lt;Routes pattern="$${sd:type}"&gt;
-        &lt;Route&gt;
-          &lt;RollingFile name="Rolling-${sd:type}" fileName="${filename}"
-                       filePattern="target/rolling1/test1-${sd:type}.%i.log.gz"&gt;
-            &lt;PatternLayout&gt;
-              &lt;pattern&gt;%d %p %c{1.} [%t] %m%n&lt;/pattern&gt;
-            &lt;/PatternLayout&gt;
-            &lt;SizeBasedTriggeringPolicy size="500" /&gt;
-          &lt;/RollingFile&gt;
-        &lt;/Route&gt;
-        &lt;Route ref="STDOUT" key="Audit"/&gt;
-      &lt;/Routes&gt;
-    &lt;/Routing&gt;
-  &lt;/Appenders&gt;
-
-  &lt;Loggers&gt;
-    &lt;Logger name="EventLogger" level="info" additivity="false"&gt;
-      &lt;AppenderRef ref="Routing"/&gt;
-    &lt;/Logger&gt;
-
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Properties.Property[1].name = FOO
+Properties.Property[1].value = foo
 
-&lt;/Configuration&gt;</code></pre>
+Properties.Property[2].name = BAR
+Properties.Property[2].value = bar</code></pre>
+</div>
+</div>
+</div>
 </div>
 </div>
 <div class="paragraph">
-<p>While this is useful, there are many more places properties can
-originate from. To accommodate this, Log4j also supports the syntax
-<code>${prefix:name}</code> where the prefix identifies tells Log4j that variable
-name should be evaluated in a specific context. See the
-<a href="lookups.html" class="xref page">Lookups</a> manual page for more details. The contexts
-that are built in to Log4j are:</p>
+<p>and the OS environment variable <code>FOO</code> has a value of <code>environment</code>, Log4j will evaluate the expression as follows</p>
 </div>
 <table class="tableblock frame-all grid-all stretch">
 <colgroup>
-<col style="width: 16.6666%;">
-<col style="width: 83.3334%;">
+<col style="width: 50%;">
+<col style="width: 50%;">
 </colgroup>
-<tbody>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>Prefix</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Context</p>
-<p class="tableblock">              &lt;tr&gt;
-                &lt;td&gt;base64&lt;/td&gt;
-                &lt;td&gt;
-                  Base64 encoded data. The format is &lt;code&gt;${base64:Base64_encoded_data}&lt;/code&gt;.
-                  For example:
-                  &lt;code&gt;${base64:SGVsbG8gV29ybGQhCg==}&lt;/code&gt; yields &lt;code&gt;Hello World!&lt;/code&gt;.
-                &lt;/td&gt;
-              &lt;/tr&gt;</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>base64</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Base64 encoded data. The format is <code>${base64:Base64_encoded_data}</code>.
-For example: <code>${base64:SGVsbG8gV29ybGQhCg==}</code> yields <code>Hello World!</code>.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>bundle</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Resource bundle. The format is <code>${bundle:BundleName:BundleKey}</code>.
-The bundle name follows package naming conventions, for example:
-<code>${bundle:com.domain.Messages:MyKey}</code>.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>ctx</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Thread Context Map (MDC)</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>date</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Inserts the current date and/or time using the specified format</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>docker</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Returns attributes from the Docker container the application is running in. The format is ${docker:some.attribute}. See <a href="../log4j-docker.html" class="xref page">Docker documentation</a> for requirements and a list of available attributes.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>env</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">System environment variables. The formats are <code>${env:ENV_NAME}</code> and <code>${env:ENV_NAME:-default_value}</code>.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>event</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Retrieves values from fields within the log event. The format is ${event:some.field}. See the Lookups manual page for a list of available fields.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>java</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Retrieves information about the Java environment the application is running in. The format is ${java:some.property}. See the Lookups manual page for a list of available properties.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>jndi</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A value set in the default JNDI Context.</p></td>
-</tr>
-<tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>jvmrunargs</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A JVM input argument accessed through JMX, but not a main argument; see
-<a href="https://docs.oracle.com/javase/6/docs/api/java/lang/management/RuntimeMXBean.html#getInputArguments--">RuntimeMXBean.getInputArguments()</a>.
-Not available on Android.</p></td>
-</tr>
+<thead>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>k8s</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Returns attributes from the Kubernetes environment the application is running in. The format is ${k8s:some.attribute}. See the Lookups manual page for a list of available attributes.</p></td>
+<th class="tableblock halign-left valign-top">Expression</th>
+<th class="tableblock halign-left valign-top">Value</th>
 </tr>
+</thead>
+<tbody>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>log4j</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Log4j configuration properties. The expressions
-<code>${log4j:configLocation}</code> and <code>${log4j:configParentLocation}</code>
-respectively provide the absolute path to the log4j configuration file
-and its parent folder.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${FOO}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>foo</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>lower</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Converts the passed in argument to lower case (usually used with nested lookups). The format is ${lower:argument}.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${BAZ}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${BAZ}</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>main</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A value set with
-../log4j-core/apidocs/org/apache/logging/log4j/core/lookup/MapLookup.html#setMainArguments-java.lang.String:A-[MapLookup.setMainArguments(String[])]</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${BAR:-${FOO}}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>bar</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>map</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A value from a MapMessage</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${BAZ:-${FOO}}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>foo</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>marker</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Allows use of markers in configurations. The formats are ${marker:} and ${marker:some.name}. See the Lookups manual page for further details.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${env:FOO}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>environment</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>sd</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">A value from a StructuredDataMessage. The key "id" will return the
-name of the StructuredDataId without the enterprise number. The key
-"type" will return the message type. Other keys will retrieve individual
-elements from the Map.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${env:BAR}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>bar</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>spring</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Returns values of Spring properties from the Spring configuration. The format is ${spring:some.property}. See the Lookups manual page for requirements and details.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${env:BAZ}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${BAZ}</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>sys</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">System properties. The formats are <code>${sys:some.property}</code> and
-<code>${sys:some.property:-default_value}</code>.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${env:BAR:-${FOO}}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>bar</code></p></td>
 </tr>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>upper</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Converts the passed in argument to upper case (usually used with nested lookups). The format is ${upper:argument}.</p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>${env:BAZ:-${FOO}}</code></p></td>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>foo</code></p></td>
 </tr>
+</tbody>
+</table>
+</div>
+</div>
+<div class="admonitionblock caution">
+<table>
 <tr>
-<td class="tableblock halign-left valign-top"><p class="tableblock"><code>web</code></p></td>
-<td class="tableblock halign-left valign-top"><p class="tableblock">Returns values of variables associated with the Servlet Context. The format is ${spring:some.key}. See the Lookups manual page for a list of available keys.</p></td>
+<td class="icon">
+<i class="fa icon-caution" title="Caution"></i>
+</td>
+<td class="content">
+<div class="paragraph">
+<p>For security reasons, if the <strong>expansion</strong> of a <code>${&#8230;&#8203;}</code> expression contains other expressions, these will <strong>not</strong> be expanded.
+The only exception to this rule is the expansion of properties in the <code>Properties</code> container.</p>
+</div>
+<div class="paragraph">
+<p>Properties defined in the <code>Properties</code> container can depend on each other.
+If your configuration contains, for example:</p>
+</div>
+<div id="_tabs_10" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_10_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_10_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_10_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_10_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
+</div>
+<div id="_tabs_10_xml--panel" class="tabpanel" aria-labelledby="_tabs_10_xml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;Properties&gt;
+  &lt;Property name="logging.file" value="${logging.dir}/app.log"/&gt;
+  &lt;Property name="logging.dir" value="${env:APP_BASE}/logs"/&gt;
+  &lt;Property name="APP_BASE" value="."/&gt;
+&lt;/Properties&gt;</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_10_json--panel" class="tabpanel" aria-labelledby="_tabs_10_json">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
+  "Properties": {
+    "Property": [
+      {
+        "name": "logging.file",
+        "value": "${logging.path}/app.log"
+      },
+      {
+        "name": "logging.dir",
+        "value": "${env:APP_BASE}/logs"
+      },
+      {
+        "name": "APP_BASE",
+        "value": "."
+      }
+    ]
+  }
+}</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_10_yaml--panel" class="tabpanel" aria-labelledby="_tabs_10_yaml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">Properties:
+  Property:
+    - name: "logging.file"
+      value: "${logging.dir}/app.log"
+    - name: "logging.dir"
+      value: "${env:APP_BASE}/logs"
+    - name: "APP_BASE"
+      value: "."</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_10_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_10_java_properties">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Properties.Property[1].name = logging.file
+Properties.Property[1].value = ${logging.dir}/app.log
+
+Properties.Property[2].name = logging.dir
+Properties.Property[2].value = ${env:APP_BASE}/logs
+
+Properties.Property[3].name = APP_BASE
+Properties.Property[3].value = .</code></pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="paragraph">
+<p>the <code>logging.dir</code> property will be expanded <strong>before</strong> the <code>logging.file</code> property, and the expanded value will be substituted in <code>${logging.dir}/app.log</code>.
+Therefore, the value of the <code>logging.file</code> property will be:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p><code>./logs/app.log</code> if the environment variable <code>APP_BASE</code> is not defined,</p>
+</li>
+<li>
+<p><code>/var/lib/app/logs/app.log</code> if the environment variable <code>APP_BASE</code> has a value of <code>/var/lib/app</code>.</p>
+</li>
+</ul>
+</div>
+</td>
 </tr>
-</tbody>
 </table>
 </div>
+<div class="sect3">
+<h4 id="lazy-property-substitution"><a class="anchor" href="#lazy-property-substitution"></a>Lazy property substitution</h4>
+<div class="paragraph">
+<p>For most attributes, property substitution is performed only once at <strong>configuration time</strong>, but there are two categories of exceptions to this rule:</p>
 </div>
-<div class="sect1">
-<h2 id="DefaultProperties"><a class="anchor" href="#DefaultProperties"></a>Default Properties</h2>
-<div class="sectionbody">
+<div class="ulist">
+<ul>
+<li>
+<p>Some attributes are <strong>also</strong> evaluated when a component-specific event occurs.
+For example
+<a href="#logger-elements-properties">additional context properties</a>
+and the <code>pattern</code> attribute of the example below are evaluated at each log event, while the <code>filePattern</code> attribute of a
+<a href="appenders.html#rollingfileappender" class="xref page">rolling file appender</a>
+is evaluated at each rollover.</p>
 <div class="paragraph">
-<p>A default property map can be declared in the configuration file by placing a Properties
-element directly after the Configuration element and before any Loggers, Filters,
-Appenders, etc. are declared. If the value cannot be located in the specified lookup the
-value in the default property map will be used. The default map is pre-populated with a value
-for "hostName" that is the current system&#8217;s host name or IP address and
-the "contextName" with is the value of the current logging context. See many places
-a Properties element is used in this section for examples.</p>
+<p>In this case:</p>
+</div>
+<div class="ulist">
+<ul>
+<li>
+<p>If you want property substitution to happen only once, use one dollar sign, e.g., <code>${date:HH:mm:ss}</code>.</p>
+</li>
+<li>
+<p>If you want property substitution to happen at each cyclic event, you use two dollar signs, e.g., <code>$${date:HH:mm:ss}</code></p>
+</li>
+</ul>
 </div>
+</li>
+<li>
+<p>Other components defer the evaluation of their child components.
+In this case, you only need one dollar <code>$</code> sign.</p>
 <div class="paragraph">
-<p>Default properties may also be specified in the Lookup by using the syntax <code>${lookupName:key:-defaultValue}</code>.
-In some cases the key might contain a leading '-'. When this is the case an escape character must be
-included, such as <code>`${main:\--file:-app.properties}</code>. This would use the
-<code>MainMapLookup</code> for a key named <code>--file</code>. If the key is not found then
-&lt;code&gt;app.properties&lt;/code&gt; would be used as the default value.</p>
+<p>This case happens for the children of the <code>Route</code> element below:</p>
 </div>
+</li>
+</ul>
 </div>
+<div id="_tabs_11" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_11_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_11_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_11_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_11_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
 </div>
-<div class="sect1">
-<h2 id="EnablingMessagePatternLookups"><a class="anchor" href="#EnablingMessagePatternLookups"></a>Enabling Message Pattern Lookups</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>A message is processed (by default) without using lookups, for example if you defined
-<code>&lt;Property name="foo.bar"&gt;FOO_BAR&lt;/Property&gt;</code>, then <code>logger.info("${foo.bar}")</code> will output <code>${foo.bar}</code> instead of <code>FOO_BAR</code>.
-You could enable message pattern lookups by defining the message pattern using <code>%m{lookups}</code>.</p>
+<div id="_tabs_11_xml--panel" class="tabpanel" aria-labelledby="_tabs_11_xml">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">    &lt;Routing name="ROUTING"&gt;
+      &lt;Routes pattern="$${sd:type}"&gt; <i class="conum" data-value="1"></i><b>(1)</b>
+        &lt;Route&gt;
+          &lt;File name="ROUTING-${sd:type}"
+                fileName="logs/${sd:type}.log"&gt; <i class="conum" data-value="2"></i><b>(2)</b>
+            &lt;JsonTemplateLayout&gt;
+              &lt;EventTemplateAdditionalField name="type"
+                                            value="${sd:type}"/&gt; <i class="conum" data-value="2"></i><b>(2)</b>
+            &lt;/JsonTemplateLayout&gt;
+          &lt;/File&gt;
+        &lt;/Route&gt;
+      &lt;/Routes&gt;
+    &lt;/Routing&gt;</code></pre>
 </div>
 </div>
 </div>
-<div class="sect1">
-<h2 id="RuntimeLookup"><a class="anchor" href="#RuntimeLookup"></a>Lookup Variables with Multiple Leading '$' Characters</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>An interesting feature of StrLookup processing is that when a variable
-reference is declared with multiple leading '$' characters each time the
-variable is resolved the leading '$' is simply removed. In the previous
-example the "Routes" element is capable of resolving the variable at
-runtime. To allow this the prefix value is specified as a variable with
-two leading '$' characters. When the configuration file is first
-processed the first '$' character is simply removed. Thus, when the
-Routes element is evaluated at runtime it is the variable declaration
-"$\{sd:type}" which causes the event to be inspected for a
-StructuredDataMessage and if one is present the value of its type
-attribute to be used as the routing key. Not all elements support
-resolving variables at runtime. Components that do will specifically
-call that out in their documentation.</p>
-</div>
-<div class="paragraph">
-<p>If no value is found for the key in the Lookup associated with the
-prefix then the value associated with the key in the properties
-declaration in the configuration file will be used. If no value is found
-the variable declaration will be returned as the value. Default values
-may be declared in the configuration by doing:</p>
+<div id="_tabs_11_json--panel" class="tabpanel" aria-labelledby="_tabs_11_json">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">      "Routing": {
+        "name": "ROUTING",
+        "Routes": {
+          "pattern": "$${sd:type}", <i class="conum" data-value="1"></i><b>(1)</b>
+          "Route": {
+            "File": {
+              "name": "ROUTING-${sd:type}", <i class="conum" data-value="2"></i><b>(2)</b>
+              "fileName": "logs/${sd:type}.log", <i class="conum" data-value="2"></i><b>(2)</b>
+              "JsonTemplateLayout": {
+                "EventTemplateAdditionalField": {
+                  "name": "type",
+                  "value": "${sd:type}" <i class="conum" data-value="2"></i><b>(2)</b>
+                }
+              }
+            }
+          }
+        }
+      }</code></pre>
+</div>
 </div>
+</div>
+<div id="_tabs_11_yaml--panel" class="tabpanel" aria-labelledby="_tabs_11_yaml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration&gt;
-  &lt;Properties&gt;
-    &lt;Property name="type"&gt;Audit&lt;/property&gt;
-  &lt;/Properties&gt;
-  ...
-&lt;/Configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">    Routing:
+      name: "ROUTING"
+      Routes:
+        pattern: "$${sd:type}" <i class="conum" data-value="1"></i><b>(1)</b>
+        Route:
+          File:
+            name: "ROUTING-${sd:type}" <i class="conum" data-value="2"></i><b>(2)</b>
+            fileName: "logs/${sd:type}.log" <i class="conum" data-value="2"></i><b>(2)</b>
+            JsonTemplateLayout:
+              EventTemplateAdditionalField:
+                name: "type"
+                value: "${sd:type}" <i class="conum" data-value="2"></i><b>(2)</b></code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_11_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_11_java_properties">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Appenders.Routing.name = ROUTING
+
+Appenders.Routing.Routes.pattern = $${sd:type} <i class="conum" data-value="1"></i><b>(1)</b>
+
+Appenders.Routing.Routes.Route.File.name = ROUTING-$sd:type} <i class="conum" data-value="2"></i><b>(2)</b>
+Appenders.Routing.Routes.Route.File.fileName = logs/${sd:type}.log <i class="conum" data-value="2"></i><b>(2)</b>
+Appenders.Routing.Routes.Route.File.JsonTemplateLayout.EventTemplateAdditionalField.name = type
+Appenders.Routing.Routes.Route.File.JsonTemplateLayout.EventTemplateAdditionalField.value = ${sd:type} <i class="conum" data-value="2"></i><b>(2)</b></code></pre>
+</div>
+</div>
+</div>
+</div>
+</div>
+<div class="colist arabic">
+<table>
+<tr>
+<td><i class="conum" data-value="1"></i><b>1</b></td>
+<td>The <code>pattern</code> attribute is evaluated at configuration time and also each time a log event is routed.
+Therefore, the dollar <code>$</code> sign needs to be escaped.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="2"></i><b>2</b></td>
+<td>All the attributes inside the <code>File</code> element have a <strong>deferred</strong> evaluation, therefore they need only one <code>$</code> sign.</td>
+</tr>
+</table>
+</div>
 </div>
 </div>
+<div class="sect2">
+<h3 id="arbiters"><a class="anchor" href="#arbiters"></a><a id="Arbiters"></a> Arbiters</h3>
 <div class="paragraph">
-<p><em>As a footnote, it is worth pointing out that the variables in the
-RollingFile appender declaration will also not be evaluated when the
-configuration is processed. This is simply because the resolution of the
-whole RollingFile element is deferred until a match occurs. See
-<a href="appenders.html#RoutingAppender" class="xref page">RoutingAppender</a> for more
-information.</em></p>
+<p>While property substitution allows using the same configuration file in multiple deployment environments, sometimes changing the values of configuration attributes is not enough.</p>
 </div>
+<div class="paragraph">
+<p>Arbiters are to configuration elements what property substitution is for configuration attributes: they allow to conditionally add a subtree of configuration elements to a configuration file.</p>
 </div>
+<div class="paragraph">
+<p>Arbiters may occur anywhere an element is allowed in the configuration and can be nested.
+So, an Arbiter could encapsulate something as simple as a single property declaration or a whole set of appenders, loggers, or other arbiters.
+The child elements of an arbiter must be valid elements for whatever element is the parent of the arbiter.</p>
+</div>
+<div class="paragraph">
+<p>For a complete list of available arbiters, see
+<a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-arbiters-Arbiter" class="xref page">plugin reference</a>.
+In the examples below, we&#8217;ll use the
+<a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-arbiters-DefaultArbiter" class="xref page">DefaultArbiter</a>,
+<a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-arbiters-SelectArbiter" class="xref page">Select</a>
+and
+<a href="../plugin-reference.html#org-apache-logging-log4j_log4j-core_org-apache-logging-log4j-core-config-arbiters-SystemPropertyArbiter" class="xref page">SystemPropertyArbiter</a>.</p>
 </div>
-<div class="sect1">
-<h2 id="Scripts"><a class="anchor" href="#Scripts"></a>Scripts</h2>
-<div class="sectionbody">
 <div class="paragraph">
-<p>Log4j provides support for
-<a href="https://docs.oracle.com/javase/6/docs/technotes/guides/scripting/">JSR
-223</a> scripting languages to be used in some of its components. Any
-language that provides support for the JSR 223 scripting engine may be
-used. A list of the languages and bindings for them can be found at the
-<a href="https://java.net/projects/scripting/sources/svn/show/trunk/engines">Scripting
-Engine</a> web site. However, some of the languages listed there, such as
-JavaScript, Groovy and Beanshell, directly support the JSR 223 scripting
-framework and only require that the jars for that language be installed.</p>
-</div>
-<div class="paragraph">
-<p>As of Log4j 2.17.2 the languages to be supported must be specified as a comma separated list in the
-<code>log4j2.Script.enableLanguages</code> system property.</p>
-</div>
-<div class="paragraph">
-<p>The components that support using scripts do so by allowing a <code>&lt;script&gt;</code>,
-<code>&lt;scriptFile&gt;</code>, or <code>&lt;scriptRef&gt;</code> element to be configured on them. The
-script element contains a name for the script, the language of the
-script, and the script text. The scriptFile element contains the name of
-the script, its location, its language, its charset, and whether the
-file should be watched for changes. The scriptRef element contains the
-name of the script that is defined in the <code>&lt;scripts&gt;</code> configuration
-element. The name of the script is used to store the script, along with
-its ScriptEngine, so it can quickly be located each time the script
-needs to be run. While the name is not required, providing it will help
-in debugging problems when the script is running. The language must be
-provided on the script element and must specify one of the language
-names that appear in the Configuration status log as described in the
-next section. If the language is not specified on the scriptFile element
-the language will be determined by the file extension of the script
-path. If file monitoring is requested it will only be enabled if a
-non-zero monitorInterval is specified on the configuration element. That
-interval will be used to check for changes in the file.</p>
+<p>For example, you might want to use a different layout in a production and development environment:</p>
+</div>
+<div id="_tabs_12" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_12_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_12_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_12_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_12_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
 </div>
+<div id="_tabs_12_xml--panel" class="tabpanel" aria-labelledby="_tabs_12_xml">
 <div class="listingblock">
 <div class="content">
 <pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="debug" name="RoutingTest"&gt;
-  &lt;Scripts&gt;
-    &lt;Script name="selector" language="javascript"&gt;&lt;![CDATA[
-            var result;
-            if (logEvent.getLoggerName().equals("JavascriptNoLocation")) {
-                result = "NoLocation";
-            } else if (logEvent.getMarker() != null &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW")) {
-                result = "Flow";
-            }
-            result;
-            ]]&gt;&lt;/Script&gt;
-    &lt;ScriptFile name="groovy.filter" path="scripts/filter.groovy"/&gt;
-  &lt;/Scripts&gt;
-
+&lt;Configuration xmlns="https://logging.apache.org/xml/ns"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="
+                   https://logging.apache.org/xml/ns
+                   https://logging.apache.org/xml/ns/log4j-config-2.xsd"&gt;
   &lt;Appenders&gt;
-    &lt;Console name="STDOUT"&gt;
-      &lt;ScriptPatternSelector defaultPattern="%d %p %m%n"&gt;
-        &lt;ScriptRef ref="selector"/&gt;
-          &lt;PatternMatch key="NoLocation" pattern="[%-5level] %c{1.} %msg%n"/&gt;
-          &lt;PatternMatch key="Flow" pattern="[%-5level] %c{1.} ====== %C{1.}.%M:%L %msg ======%n"/&gt;
-      &lt;/ScriptPatternSelector&gt;
-      &lt;PatternLayout pattern="%m%n"/&gt;
-    &lt;/Console&gt;
+    &lt;File name="MAIN" fileName="logs/app.log"&gt;
+      &lt;SystemPropertyArbiter propertyName="env" propertyValue="dev"&gt; <i class="conum" data-value="1"></i><b>(1)</b>
+        &lt;PatternLayout pattern="%d [%t] %p %c - %m%n"/&gt;
+      &lt;/SystemPropertyArbiter&gt;
+      &lt;SystemPropertyArbiter propertyName="env" propertyValue="prod"&gt; <i class="conum" data-value="2"></i><b>(2)</b>
+        &lt;JsonTemplateLayout/&gt;
+      &lt;/SystemPropertyArbiter&gt;
+    &lt;/File&gt;
   &lt;/Appenders&gt;
-
   &lt;Loggers&gt;
-    &lt;Logger name="EventLogger" level="info" additivity="false"&gt;
-        &lt;ScriptFilter onMatch="ACCEPT" onMisMatch="DENY"&gt;
-          &lt;Script name="GroovyFilter" language="groovy"&gt;&lt;![CDATA[
-            if (logEvent.getMarker() != null &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW")) {
-                return true;
-            } else if (logEvent.getContextMap().containsKey("UserId")) {
-                return true;
-            }
-            return false;
-            ]]&gt;
-          &lt;/Script&gt;
-        &lt;/ScriptFilter&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Logger&gt;
-
-    &lt;Root level="error"&gt;
-      &lt;ScriptFilter onMatch="ACCEPT" onMisMatch="DENY"&gt;
-        &lt;ScriptRef ref="groovy.filter"/&gt;
-      &lt;/ScriptFilter&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
+    &lt;Root level="INFO"&gt;
+      &lt;AppenderRef ref="MAIN"/&gt;
     &lt;/Root&gt;
   &lt;/Loggers&gt;
-
 &lt;/Configuration&gt;</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>If the status attribute on the Configuration element is set to DEBUG the
-list of script engines currently installed and their attributes will be
-listed. Although some engines may say they are not thread safe, Log4j
-takes steps to insure that the scripts will run in a thread-safe manner
-if the engine advertises that it is not thread safe.</p>
 </div>
-<div class="literalblock">
+<div id="_tabs_12_json--panel" class="tabpanel" aria-labelledby="_tabs_12_json">
+<div class="listingblock">
 <div class="content">
-<pre>2015-09-27 16:13:22,925 main DEBUG Installed script engines
-2015-09-27 16:13:22,963 main DEBUG AppleScriptEngine Version: 1.1, Language: AppleScript, Threading: Not Thread Safe,
-            Compile: false, Names: {AppleScriptEngine, AppleScript, OSA}
-2015-09-27 16:13:22,983 main DEBUG Groovy Scripting Engine Version: 2.0, Language: Groovy, Threading: MULTITHREADED,
-            Compile: true, Names: {groovy, Groovy}
-2015-09-27 16:13:23,030 main DEBUG BeanShell Engine Version: 1.0, Language: BeanShell, Threading: MULTITHREADED,
-            Compile: true, Names: {beanshell, bsh, java}
-2015-09-27 16:13:23,039 main DEBUG Mozilla Rhino Version: 1.7 release 3 PRERELEASE, Language: ECMAScript, Threading: MULTITHREADED,
-            Compile: true, Names: {js, rhino, JavaScript, javascript, ECMAScript, ecmascript}</pre>
-</div>
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">{
+  "Configuration": {
+    "Appenders": {
+      "File": {
+        "name": "MAIN",
+        "fileName": "logs/app.log",
+        "SystemPropertyArbiter": [
+          <i class="conum" data-value="1"></i><b>(1)</b>
+          {
+            "propertyName": "env",
+            "propertyValue": "dev",
+            "PatternLayout": {
+              "pattern": "%d [%t] %p %c - %m%n"
+            }
+          },
+          <i class="conum" data-value="2"></i><b>(2)</b>
+          {
+            "propertyName": "env",
+            "propertyValue": "prod",
+            "JsonTemplateLayout": {}
+          }
+        ]
+      }
+    },
+    "Loggers": {
+      "Root": {
+        "level": "INFO",
+        "AppenderRef": {
+          "ref": "MAIN"
+        }
+      }
+    }
+  }
+}</code></pre>
 </div>
-<div class="paragraph">
-<p>When the scripts are executed they will be provided with a set of
-variables that should allow them to accomplish whatever task they are
-expected to perform. See the documentation for the individual components
-for the list of variables that are available to the script.</p>
 </div>
-<div class="paragraph">
-<p>The components that support scripting expect a return value to be passed
-back to the calling Java code. This is not a problem for several of the
-scripting languages, but Javascript does not allow a return statement
-unless it is within a function. However, Javascript will return the
-value of the last statement executed in the script. As a consequence,
-code such as that shown below will result in the desired behavior.</p>
 </div>
+<div id="_tabs_12_yaml--panel" class="tabpanel" aria-labelledby="_tabs_12_yaml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-javascript hljs" data-lang="javascript">var result;
-if (logEvent.getLoggerName().equals("JavascriptNoLocation")) {
-    result = "NoLocation";
-} else if (logEvent.getMarker() != null &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW")) {
-    result = "Flow";
-}
-result;</code></pre>
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">Configuration:
+  Appenders:
+    File:
+      name: "MAIN"
+      fileName: "logs/app.log"
+      SystemPropertyArbiter:
+        - propertyName: "env" <i class="conum" data-value="1"></i><b>(1)</b>
+          propertyValue: "dev"
+          PatternLayout:
+            pattern: "%d [%t] %p %c - %m%n"
+        - propertyName: "env" <i class="conum" data-value="2"></i><b>(2)</b>
+          propertyValue: "prod"
+          JsonTemplateLayout: {}
+  Loggers:
+    Root:
+      level: "INFO"
+      AppenderRef:
+        ref: "MAIN"</code></pre>
 </div>
 </div>
-<div class="sect2">
-<h3 id="_a_special_note_on_beanshell"><a class="anchor" href="#_a_special_note_on_beanshell"></a>A special note on Beanshell</h3>
-<div class="paragraph">
-<p>JSR 223 scripting engines are supposed to identify that they support the
-Compilable interface if they support compiling their scripts. Beanshell
-does this. However, whenever the compile method is called it throws an
-Error (not an Exception). Log4j catches this but will log the warning
-shown below for each Beanshell script when it tries to compile them. All
-Beanshell scripts will then be interpreted on each execution.</p>
 </div>
-<div class="literalblock">
+<div id="_tabs_12_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_12_java_properties">
+<div class="listingblock">
 <div class="content">
-<pre>2015-09-27 16:13:23,095 main DEBUG Script BeanShellSelector is compilable
-2015-09-27 16:13:23,096 main WARN Error compiling script java.lang.Error: unimplemented
-            at bsh.engine.BshScriptEngine.compile(BshScriptEngine.java:175)
-            at bsh.engine.BshScriptEngine.compile(BshScriptEngine.java:154)
-            at org.apache.logging.log4j.core.script.ScriptManager$MainScriptRunner.&lt;init&gt;(ScriptManager.java:125)
-            at org.apache.logging.log4j.core.script.ScriptManager.addScript(ScriptManager.java:94)</pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Appenders.File.name = MAIN
+
+Appenders.File.SystemPropertyArbiter[1].propertyName = env <i class="conum" data-value="1"></i><b>(1)</b>
+Appenders.File.SystemPropertyArbiter[1].propertyValue = dev
+Appenders.File.SystemPropertyArbiter[1].PatternLayout.pattern = %d [%t] %p %c - %m%n
+
+appender.0.arbiter[1].type = SystemPropertyArbiter <i class="conum" data-value="2"></i><b>(2)</b>
+Appenders.File.SystemPropertyArbiter[2].propertyName = env
+Appenders.File.SystemPropertyArbiter[2].propertyValue = prod
+Appenders.File.SystemPropertyArbiter[2].layout.type = JsonTemplateLayout
+
+Loggers.Root.level = INFO
+Loggers.Root.AppenderRef.ref = MAIN</code></pre>
 </div>
 </div>
 </div>
 </div>
 </div>
-<div class="sect1">
-<h2 id="XInclude"><a class="anchor" href="#XInclude"></a>XInclude</h2>
-<div class="sectionbody">
+<div class="colist arabic">
+<table>
+<tr>
+<td><i class="conum" data-value="1"></i><b>1</b></td>
+<td>If the Java system property <code>env</code> has a value of <code>dev</code>, a pattern layout will be used.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="2"></i><b>2</b></td>
+<td>If the Java system property <code>env</code> has a value of <code>prod</code>, a JSON template layout will be used.</td>
+</tr>
+</table>
+</div>
 <div class="paragraph">
-<p>XML configuration files can include other files with
-<a href="http://www.xml.com/lpt/a/1009">XInclude</a>. Here is an example log4j2.xml
-file that includes two other files:</p>
+<p>The above example has a problem: if the Java system property <code>env</code> has a value different from <code>dev</code> or <code>prod</code>, the appender will have no layout.</p>
+</div>
+<div class="paragraph">
+<p>This is a case when the <code>Select</code> plugin is useful: this configuration element contains a list of arbiters and a
+<code>DefaultArbiter</code> element.
+If none of the arbiters match, the configuration from the <code>DefaultArbiter</code> element will be used:</p>
+</div>
+<div id="_tabs_13" class="openblock tabs is-loading">
+<div class="content">
+<div class="ulist tablist">
+<ul>
+<li id="_tabs_13_xml" class="tab">
+<p>XML</p>
+</li>
+<li id="_tabs_13_json" class="tab">
+<p>JSON</p>
+</li>
+<li id="_tabs_13_yaml" class="tab">
+<p>YAML</p>
+</li>
+<li id="_tabs_13_java_properties" class="tab">
+<p>Java properties</p>
+</li>
+</ul>
 </div>
+<div id="_tabs_13_xml--panel" class="tabpanel" aria-labelledby="_tabs_13_xml">
 <div class="listingblock">
-<div class="title">log4j2.xml</div>
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;configuration xmlns:xi="http://www.w3.org/2001/XInclude"
-               status="warn" name="XIncludeDemo"&gt;
-  &lt;properties&gt;
-    &lt;property name="filename"&gt;xinclude-demo.log&lt;/property&gt;
-  &lt;/properties&gt;
-  &lt;ThresholdFilter level="debug"/&gt;
-  &lt;xi:include href="log4j-xinclude-appenders.xml" /&gt;
-  &lt;xi:include href="log4j-xinclude-loggers.xml" /&gt;
-&lt;/configuration&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">      &lt;Select&gt;
+        &lt;SystemPropertyArbiter propertyName="env" propertyValue="dev"&gt; <i class="conum" data-value="1"></i><b>(1)</b>
+          &lt;PatternLayout/&gt;
+        &lt;/SystemPropertyArbiter&gt;
+        &lt;DefaultArbiter&gt; <i class="conum" data-value="2"></i><b>(2)</b>
+          &lt;JsonTemplateLayout/&gt;
+        &lt;/DefaultArbiter&gt;
+      &lt;/Select&gt;</code></pre>
+</div>
 </div>
 </div>
+<div id="_tabs_13_json--panel" class="tabpanel" aria-labelledby="_tabs_13_json">
 <div class="listingblock">
-<div class="title">log4j-xinclude-appenders.xml</div>
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;appenders&gt;
-  &lt;Console name="STDOUT"&gt;
-    &lt;PatternLayout pattern="%m%n" /&gt;
-  &lt;/Console&gt;
-  &lt;File name="File" fileName="${filename}" bufferedIO="true" immediateFlush="true"&gt;
-    &lt;PatternLayout&gt;
-      &lt;pattern&gt;%d %p %C{1.} [%t] %m%n&lt;/pattern&gt;
-    &lt;/PatternLayout&gt;
-  &lt;/File&gt;
-&lt;/appenders&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">        "Select": {
+          "SystemPropertyArbiter": { <i class="conum" data-value="1"></i><b>(1)</b>
+            "propertyName": "env",
+            "propertyValue": "dev",
+            "PatternLayout": {}
+          },
+          "DefaultArbiter": { <i class="conum" data-value="2"></i><b>(2)</b>
+            "JsonTemplateLayout": {}
+          }
+        }</code></pre>
 </div>
 </div>
+</div>
+<div id="_tabs_13_yaml--panel" class="tabpanel" aria-labelledby="_tabs_13_yaml">
 <div class="listingblock">
-<div class="title">log4j-xinclude-loggers.xml</div>
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;loggers&gt;
-  &lt;logger name="org.apache.logging.log4j.test1" level="debug" additivity="false"&gt;
-    &lt;ThreadContextMapFilter&gt;
-      &lt;KeyValuePair key="test" value="123" /&gt;
-    &lt;/ThreadContextMapFilter&gt;
-    &lt;AppenderRef ref="STDOUT" /&gt;
-  &lt;/logger&gt;
-
-  &lt;logger name="org.apache.logging.log4j.test2" level="debug" additivity="false"&gt;
-    &lt;AppenderRef ref="File" /&gt;
-  &lt;/logger&gt;
+<pre class="highlightjs highlight"><code class="language-yaml hljs" data-lang="yaml">      Select:
+        SystemPropertyArbiter: <i class="conum" data-value="1"></i><b>(1)</b>
+          propertyName: "env"
+          propertyValue: "dev"
+          PatternLayout: {}
+        DefaultArbiter: <i class="conum" data-value="2"></i><b>(2)</b>
+          JsonTemplateLayout: {}</code></pre>
+</div>
+</div>
+</div>
+<div id="_tabs_13_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_13_java_properties">
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Appenders.File.Select.SystemPropertyArbiter.propertyName = env <i class="conum" data-value="1"></i><b>(1)</b>
+Appenders.File.Select.SystemPropertyArbiter.propertyValue = dev
+Appenders.File.Select.SystemPropertyArbiter.layout.type = PatternLayout
 
-  &lt;root level="error"&gt;
-    &lt;AppenderRef ref="STDOUT" /&gt;
-  &lt;/root&gt;
-&lt;/loggers&gt;</code></pre>
+Appenders.File.Select.DefaultArbiter.layout.type = JsonTemplateLayout <i class="conum" data-value="2"></i><b>(2)</b></code></pre>
 </div>
 </div>
 </div>
 </div>
-<div class="sect1">
-<h2 id="CompositeConfiguration"><a class="anchor" href="#CompositeConfiguration"></a>Composite Configuration</h2>
-<div class="sectionbody">
+</div>
+<div class="colist arabic">
+<table>
+<tr>
+<td><i class="conum" data-value="1"></i><b>1</b></td>
+<td>If the Java system property <code>env</code> has a value of <code>dev</code>, a pattern layout will be used.</td>
+</tr>
+<tr>
+<td><i class="conum" data-value="2"></i><b>2</b></td>
+<td>Otherwise, a JSON template layout will be used.</td>
+</tr>
+</table>
+</div>
+</div>
+<div class="sect2">
+<h3 id="CompositeConfiguration"><a class="anchor" href="#CompositeConfiguration"></a>Composite Configuration</h3>
+<div class="paragraph">
+<p>Log4j allows multiple configuration files to be used at the same time by specifying them as a list of comma-separated file paths or URLs in the
+<a href="systemproperties.html#log4j.configuration.location" class="xref page">log4j.configuration.location</a>
+configuration property.</p>
+</div>
+<div class="paragraph">
+<p>These configuration files are merged into a single configuration file using
+<a href="../javadoc/log4j-core/org/apache/logging/log4j/core/config/composite/MergeStrategy.html">MergeStrategy</a>
+service that can be customized using the
+<a href="systemproperties.html#log4j.configuration.mergeStrategy" class="xref page">log4j.configuration.mergeStrategy</a>
+configuration property.</p>
+</div>
 <div class="paragraph">
-<p>Log4j allows multiple configuration files to be used by specifying them
-as a list of comma separated file paths on log4j2.configurationFile or,
-when using URLs, by adding secondary configuration locations as query
-parameters named "override". The merge logic can be controlled by specifying
-a class that implements the MergeStrategy interface on the log4j.mergeStrategy
-property. The default merge strategy will merge the files using the following rules:</p>
+<p>The default merge strategy will merge the files using the following rules:</p>
 </div>
 <div class="olist arabic">
 <ol class="arabic">
 <li>
-<p>The global configuration attributes are aggregated with those in
-later configurations replacing those in previous configurations, with
-the exception that the highest status level and the lowest
-monitorInterval greater than 0 will be used.</p>
+<p><a href="#global-configuration-attributes">Global configuration attributes</a> in later configurations replace those in previous configurations.</p>
+<div class="paragraph">
+<p>The exception is the <code>monitorInterval</code> attribute: the lowest positive value from all the configuration files will be used.</p>
+</div>
 </li>
 <li>
-<p>Properties from all configurations are aggregated. Duplicate
-properties replace those in previous configurations.</p>
+<p><a href="#property-substitution">Properties</a> from all configurations are aggregated.
+Duplicate properties replace those in previous configurations.</p>
 </li>
 <li>
-<p>Filters are aggregated under a CompositeFilter if more than one
-Filter is defined. Since Filters are not named duplicates may be
-present.</p>
+<p><a href="filters.html" class="xref page">Filters</a> are aggregated under
+<a href="filters.html#CompositeFilter" class="xref page">CompositeFilter</a>, if more than one filter is defined.</p>
 </li>
 <li>
-<p>Scripts and ScriptFile references are aggregated. Duplicate
-definitions replace those in previous configurations.</p>
+<p><a href="scripts.html" class="xref page">Scripts</a> are aggregated.
+Duplicate definitions replace those in previous configurations.</p>
 </li>
 <li>
-<p>Appenders are aggregated. Appenders with the same name are replaced
-by those in later configurations, including all of the Appender&#8217;s
-subcomponents.</p>
+<p><a href="appenders.html" class="xref page">Appenders</a> are aggregated.
+Appenders with the same name are <strong>replaced</strong> by those in later configurations, including all their elements.</p>
 </li>
 <li>
-<p>Loggers are all aggregated. Logger attributes are individually
-merged with duplicates being replaced by those in later configurations.
-Appender references on a Logger are aggregated with duplicates being
-replaced by those in later configurations. Filters on a Logger are
-aggregated under a CompositeFilter if more than one Filter is defined.
-Since Filters are not named duplicates may be present. Filters under
-Appender references included or discarded depending on whether their
-parent Appender reference is kept or discarded.</p>
+<p><a href="#configuring-loggers">Loggers</a> are all aggregated.
+Logger attributes are individually merged, and those in later configurations replace duplicates.
+Appender references on a logger are aggregated, and those in later configurations replace duplicates.
+The strategy merges filters on loggers using the rule above.</p>
 </li>
 </ol>
 </div>
 </div>
-</div>
-<div class="sect1">
-<h2 id="StatusMessages"><a class="anchor" href="#StatusMessages"></a>Status Messages</h2>
-<div class="sectionbody">
-<div class="sidebarblock">
-<div class="content">
-<div class="paragraph">
-<p><strong>Troubleshooting tip for the impatient:</strong></p>
-</div>
+<div class="sect2">
+<h3 id="format-specific-notes"><a class="anchor" href="#format-specific-notes"></a>Format specific notes</h3>
+<div class="sect3">
+<h4 id="xml-features"><a class="anchor" href="#xml-features"></a>XML format</h4>
+<div class="sect4">
+<h5 id="xml-global-configuration-attributes"><a class="anchor" href="#xml-global-configuration-attributes"></a>Global configuration attributes</h5>
 <div class="paragraph">
-<p>From log4j-2.9 onward, log4j2 will print all internal logging to the
-console if system property <code>log4j2.debug</code> is either defined empty or its value
-equals to <code>true</code> (ignoring case).</p>
+<p>The XML format supports the following additional attributes on the <code>Configuration</code> element.</p>
 </div>
+<div class="sect5">
+<h6 id="configuration-attribute-schema"><a class="anchor" href="#configuration-attribute-schema"></a><code>schema</code></h6>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock">classpath resource</p></td>
+</tr>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>null</code></p></td>
+</tr>
+</tbody>
+</table>
 <div class="paragraph">
-<p>Prior to log4j-2.9, there are two places where internal logging can be
-controlled:</p>
-</div>
-<div class="ulist">
-<ul>
-<li>
-<p>Before a configuration is found, status logger level can be controlled
-with system property
-<code>org.apache.logging.log4j.simplelog.StatusLogger.level</code>.</p>
-</li>
-<li>
-<p>After a configuration is found, status logger level can be controlled
-in the configuration file with the "status" attribute, for example:
-<code>&lt;Configuration status="trace"&gt;</code>.</p>
-</li>
-</ul>
+<p>Specifies the path to a classpath resource containing an XML schema.</p>
 </div>
 </div>
+<div class="sect5">
+<h6 id="configuration-attribute-strict"><a class="anchor" href="#configuration-attribute-strict"></a><code>strict</code></h6>
+<table class="tableblock frame-all grid-all stretch">
+<colgroup>
+<col style="width: 16.6666%;">
+<col style="width: 83.3334%;">
+</colgroup>
+<tbody>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Type</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>boolean</code></p></td>
+</tr>
+<tr>
+<th class="tableblock halign-left valign-top"><p class="tableblock">Default value</p></th>
+<td class="tableblock halign-left valign-top"><p class="tableblock"><code>false</code></p></td>
+</tr>
+</tbody>
+</table>
+<div class="paragraph">
+<p>If set to <code>true,</code> all configuration files will be checked against the XML schema provided by the
+<a href="#configuration-attribute-schema"><code>schema</code></a>.</p>
 </div>
 <div class="paragraph">
-<p>Just as it is desirable to be able to diagnose problems in applications,
-it is frequently necessary to be able to diagnose problems in the
-logging configuration or in the configured components. Since logging has
-not been configured, "normal" logging cannot be used during
-initialization. In addition, normal logging within appenders could
-create infinite recursion which Log4j will detect and cause the
-recursive events to be ignored. To accomodate this need, the Log4j 2 API
-includes a
-<a href="https://logging.apache.org/log4j/2.x/javadoc/log4j-api/org/apache/logging/log4j/status/StatusLogger.html"><code>StatusLogger</code></a>.
-Components declare an instance of the StatusLogger similar to:</p>
+<p>This setting also enables "XML strict mode" and allows one to specify an element&#8217;s <strong>plugin type</strong> through a <code>type</code> attribute instead of the tag name.</p>
 </div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">protected final static Logger logger = StatusLogger.getLogger();</code></pre>
 </div>
 </div>
+<div class="sect4">
+<h5 id="xinclude"><a class="anchor" href="#xinclude"></a><a id="XInlcude"></a> XInclude</h5>
 <div class="paragraph">
-<p>Since StatusLogger implements the Log4j 2 API&#8217;s Logger interface, all
-the normal Logger methods may be used.</p>
+<p>XML configuration files can include other files with
+<a href="https://www.w3.org/TR/xinclude/">XInclude</a>.</p>
+</div>
+<div class="admonitionblock note">
+<table>
+<tr>
+<td class="icon">
+<i class="fa icon-note" title="Note"></i>
+</td>
+<td class="content">
+The list of <code>XInclude</code> and <code>XPath</code> features supported depends upon your
+<a href="https://docs.oracle.com/javase/17/docs/technotes/guides/xml/jaxp/index.html">JAXP implementation</a>.
+</td>
+</tr>
+</table>
 </div>
 <div class="paragraph">
-<p>When configuring Log4j it is sometimes necessary to view the generated
-status events. This can be accomplished by adding the status attribute
-to the configuration element or a default value can be provided by
-setting the "Log4jDefaultStatusLevel" system property. Valid values of
-the status attribute are "trace", "debug", "info", "warn", "error" and
-"fatal". The following configuration has the status attribute set to
-debug.</p>
+<p>Here is an example log4j2.xml file that includes two other files:</p>
 </div>
 <div class="listingblock">
+<div class="title">log4j2.xml</div>
 <div class="content">
 <pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
-&lt;Configuration status="debug" name="RoutingTest"&gt;
+&lt;Configuration xmlns="https://logging.apache.org/xml/ns"
+               xmlns:xi="http://www.w3.org/2001/XInclude"
+               xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+               xsi:schemaLocation="
+                   https://logging.apache.org/xml/ns
+                   https://logging.apache.org/xml/ns/log4j-config-2.xsd"&gt;
   &lt;Properties&gt;
-    &lt;Property name="filename"&gt;target/rolling1/rollingtest-$${sd:type}.log&lt;/Property&gt;
+    &lt;Property name="filename" value="app.log"/&gt;
   &lt;/Properties&gt;
-  &lt;ThresholdFilter level="debug"/&gt;
-
-  &lt;Appenders&gt;
-    &lt;Console name="STDOUT"&gt;
-      &lt;PatternLayout pattern="%m%n"/&gt;
-      &lt;ThresholdFilter level="debug"/&gt;
-    &lt;/Console&gt;
-    &lt;Routing name="Routing"&gt;
-      &lt;Routes pattern="$${sd:type}"&gt;
-        &lt;Route&gt;
-          &lt;RollingFile name="Rolling-${sd:type}" fileName="${filename}"
-                       filePattern="target/rolling1/test1-${sd:type}.%i.log.gz"&gt;
-            &lt;PatternLayout&gt;
-              &lt;pattern&gt;%d %p %c{1.} [%t] %m%n&lt;/pattern&gt;
-            &lt;/PatternLayout&gt;
-            &lt;SizeBasedTriggeringPolicy size="500" /&gt;
-          &lt;/RollingFile&gt;
-        &lt;/Route&gt;
-        &lt;Route ref="STDOUT" key="Audit"/&gt;
-      &lt;/Routes&gt;
-    &lt;/Routing&gt;
-  &lt;/Appenders&gt;
-
-  &lt;Loggers&gt;
-    &lt;Logger name="EventLogger" level="info" additivity="false"&gt;
-      &lt;AppenderRef ref="Routing"/&gt;
-    &lt;/Logger&gt;
-
-    &lt;Root level="error"&gt;
-      &lt;AppenderRef ref="STDOUT"/&gt;
-    &lt;/Root&gt;
-  &lt;/Loggers&gt;
-
+  &lt;xi:include href="xinclude-appenders.xml"/&gt;
+  &lt;xi:include href="xinclude-loggers.xml"/&gt;
 &lt;/Configuration&gt;</code></pre>
 </div>
 </div>
-<div class="paragraph">
-<p>During startup this configuration produces:</p>
-</div>
-<div class="literalblock">
-<div class="content">
-<pre>2011-11-23 17:08:00,769 DEBUG Generated plugins in 0.003374000 seconds
-2011-11-23 17:08:00,789 DEBUG Calling createProperty on class org.apache.logging.log4j.core.config.Property for element property with params(name="filename", value="target/rolling1/rollingtest-${sd:type}.log")
-2011-11-23 17:08:00,792 DEBUG Calling configureSubstitutor on class org.apache.logging.log4j.core.config.PropertiesPlugin for element properties with params(properties={filename=target/rolling1/rollingtest-${sd:type}.log})
-2011-11-23 17:08:00,794 DEBUG Generated plugins in 0.001362000 seconds
-2011-11-23 17:08:00,797 DEBUG Calling createFilter on class org.apache.logging.log4j.core.filter.ThresholdFilter for element ThresholdFilter with params(level="debug", onMatch="null", onMismatch="null")
-2011-11-23 17:08:00,800 DEBUG Calling createLayout on class org.apache.logging.log4j.core.layout.PatternLayout for element PatternLayout with params(pattern="%m%n", Configuration(RoutingTest), null, charset="null")
-2011-11-23 17:08:00,802 DEBUG Generated plugins in 0.001349000 seconds
-2011-11-23 17:08:00,804 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.ConsoleAppender for element Console with params(PatternLayout(%m%n), null, target="null", name="STDOUT", ignoreExceptions="null")
-2011-11-23 17:08:00,804 DEBUG Calling createFilter on class org.apache.logging.log4j.core.filter.ThresholdFilter for element ThresholdFilter with params(level="debug", onMatch="null", onMismatch="null")
-2011-11-23 17:08:00,813 DEBUG Calling createRoute on class org.apache.logging.log4j.core.appender.routing.Route for element Route with params(AppenderRef="null", key="null", Node=Route)
-2011-11-23 17:08:00,823 DEBUG Calling createRoute on class org.apache.logging.log4j.core.appender.routing.Route for element Route with params(AppenderRef="STDOUT", key="Audit", Node=Route)
-2011-11-23 17:08:00,825 DEBUG Calling createRoutes on class org.apache.logging.log4j.core.appender.routing.Routes for element Routes with params(pattern="${sd:type}", routes={Route(type=dynamic default), Route(type=static Reference=STDOUT key='Audit')})
-2011-11-23 17:08:00,827 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.routing.RoutingAppender for element Routing with params(name="Routing", ignoreExceptions="null", Routes({Route(type=dynamic default),Route(type=static Reference=STDOUT key='Audit')}), Configuration(RoutingTest), null, null)
-2011-11-23 17:08:00,827 DEBUG Calling createAppenders on class org.apache.logging.log4j.core.config.AppendersPlugin for element appenders with params(appenders={STDOUT, Routing})
-2011-11-23 17:08:00,828 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.plugins.AppenderRefPlugin for element AppenderRef with params(ref="Routing")
-2011-11-23 17:08:00,829 DEBUG Calling createLogger on class org.apache.logging.log4j.core.config.LoggerConfig for element logger with params(additivity="false", level="info", name="EventLogger", AppenderRef={Routing}, null)
-2011-11-23 17:08:00,830 DEBUG Calling createAppenderRef on class org.apache.logging.log4j.core.config.plugins.AppenderRefPlugin for element AppenderRef with params(ref="STDOUT")
-2011-11-23 17:08:00,831 DEBUG Calling createLogger on class org.apache.logging.log4j.core.config.LoggerConfig$RootLogger for element root with params(additivity="null", level="error", AppenderRef={STDOUT}, null)
-2011-11-23 17:08:00,833 DEBUG Calling createLoggers on class org.apache.logging.log4j.core.config.LoggersPlugin for element loggers with params(loggers={EventLogger, root})
-2011-11-23 17:08:00,834 DEBUG Reconfiguration completed
-2011-11-23 17:08:00,846 DEBUG Calling createLayout on class org.apache.logging.log4j.core.layout.PatternLayout for element PatternLayout with params(pattern="%d %p %c{1.} [%t] %m%n", Configuration(RoutingTest), null, charset="null")
-2011-11-23 17:08:00,849 DEBUG Calling createPolicy on class org.apache.logging.log4j.core.appender.rolling.SizeBasedTriggeringPolicy for element SizeBasedTriggeringPolicy with params(size="500")
-2011-11-23 17:08:00,851 DEBUG Calling createAppender on class org.apache.logging.log4j.core.appender.RollingFileAppender for element RollingFile with params(fileName="target/rolling1/rollingtest-Unknown.log", filePattern="target/rolling1/test1-Unknown.%i.log.gz", append="null", name="Rolling-Unknown", bufferedIO="null", immediateFlush="null", SizeBasedTriggeringPolicy(SizeBasedTriggeringPolicy(size=500)), null, PatternLayout(%d %p %c{1.} [%t] %m%n), null, ignoreExceptions="null")
-2011-11-23 17:08:00,858 DEBUG Generated plugins in 0.002014000 seconds
-2011-11-23 17:08:00,889 DEBUG Reconfiguration started for context sun.misc.Launcher$AppClassLoader@37b90b39
-2011-11-23 17:08:00,890 DEBUG Generated plugins in 0.001355000 seconds
-2011-11-23 17:08:00,959 DEBUG Generated plugins in 0.001239000 seconds
-2011-11-23 17:08:00,961 DEBUG Generated plugins in 0.001197000 seconds
-2011-11-23 17:08:00,965 WARN No Loggers were configured, using default
-2011-11-23 17:08:00,976 DEBUG Reconfiguration completed</pre>
-</div>
-</div>
-<div class="paragraph">
-<p>If the status attribute is set to error then only error messages will be
-written to the console. This makes troubleshooting configuration errors
-possible. As an example, if the configuration above is changed to have
-the status set to error and the logger declaration is:</p>
-</div>
 <div class="listingblock">
+<div class="title">xinclude-appenders.xml</div>
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;logger name="EventLogger" level="info" additivity="false"&gt;
-  &lt;AppenderRef ref="Routng"/&gt;
-&lt;/logger&gt;</code></pre>
-</div>
-</div>
-<div class="paragraph">
-<p>the following error message will be produced.</p>
-</div>
-<div class="literalblock">
-<div class="content">
-<pre>2011-11-24 23:21:25,517 ERROR Unable to locate appender Routng for logger EventLogger</pre>
-</div>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;Appenders&gt;
+  &lt;Console name="CONSOLE"&gt;
+    &lt;PatternLayout pattern="%d %m%n"/&gt;
+  &lt;/Console&gt;
+  &lt;File name="FILE" fileName="${filename}"&gt;
+    &lt;PatternLayout pattern="%d %p %C{1.} [%t] %m%n"/&gt;
+  &lt;/File&gt;
+&lt;/Appenders&gt;</code></pre>
 </div>
-<div class="paragraph">
-<p>Applications may wish to direct the status output to some other
-destination. This can be accomplished by setting the dest attribute to
-either "err" to send the output to stderr or to a file location or URL.
-This can also be done by insuring the configured status is set to OFF
-and then configuring the application programmatically such as:</p>
 </div>
 <div class="listingblock">
+<div class="title">xinclude-loggers.xml</div>
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">StatusConsoleListener listener = new StatusConsoleListener(Level.ERROR);
-StatusLogger.getLogger().registerListener(listener);</code></pre>
-</div>
-</div>
-</div>
-</div>
-<div class="sect1">
-<h2 id="UnitTestingInMaven"><a class="anchor" href="#UnitTestingInMaven"></a>Testing in Maven</h2>
-<div class="sectionbody">
-<div class="paragraph">
-<p>Maven can run unit and functional tests during the build cycle. By
-default, any files placed in <code>src/test/resources</code> are automatically
-copied to target/test-classes and are included 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.</p>
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;?xml version="1.0" encoding="UTF-8"?&gt;
+&lt;Loggers&gt;
+  &lt;Rogger name="org.example" level="DEBUG" additivity="false"&gt;
+    &lt;AppenderRef ref="FILE" /&gt;
+  &lt;/Rogger&gt;
+  &lt;Root level="ERROR"&gt;
+    &lt;AppenderRef ref="CONSOLE" /&gt;
+  &lt;/Root&gt;
+&lt;/Loggers&gt;</code></pre>
 </div>
-<div class="paragraph">
-<p>A second approach, which is extensively used by Log4j 2, is to set the
-log4j2.configurationFile property in the method annotated with
-@BeforeClass in the junit test class. This will allow an arbitrarily
-named file to be used during the test.</p>
 </div>
-<div class="paragraph">
-<p>A third approach, also used extensively by Log4j 2, is to use the
-<code>LoggerContextRule</code> JUnit test rule which provides additional
-convenience methods for testing. This requires adding the <code>log4j-core</code>
-<code>test-jar</code> dependency to your test scope dependencies. For example:</p>
 </div>
-<div class="listingblock">
-<div class="content">
-<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">public class AwesomeTest {
-    @Rule
-    public LoggerContextRule init = new LoggerContextRule("MyTestConfig.xml");
-
-    @Test
-    public void testSomeAwesomeFeature() {
-        final LoggerContext ctx = init.getLoggerContext();
-        final Logger logger = init.getLogger("org.apache.logging.log4j.my.awesome.test.logger");
-        final Configuration cfg = init.getConfiguration();
-        final ListAppender app = init.getListAppender("List");
-        logger.warn("Test message");
-        final List&lt;LogEvent&gt; events = app.getEvents();
-        // etc.
-    }
-}</code></pre>
 </div>
 </div>
 </div>
diff --git a/manual/installation.html b/manual/installation.html
index c85cfa9206..e89f877e1b 100644
--- a/manual/installation.html
+++ b/manual/installation.html
@@ -1076,12 +1076,10 @@ A basic configuration can be obtained by adding one of these files to your appli
 <div id="_tabs_10_log4j2_properties--panel" class="tabpanel" aria-labelledby="_tabs_10_log4j2_properties">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">appender.0.type = Console
-appender.0.name = CONSOLE
-appender.0.layout = PatternLayout <i class="conum" data-value="1"></i><b>(1)</b>
-appender.0.layout.pattern = %d [%t] %5p %c{1.} - %m%n
-rootLogger.level = INFO
-rootLogger.appenderRef.0.ref = CONSOLE</code></pre>
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Appenders.Console.name = CONSOLE
+Appenders.Console.PatternLayout.pattern = %d [%t] %5p %c{1.} - %m%n <i class="conum" data-value="1"></i><b>(1)</b>
+Loggers.Root.level = INFO
+Loggers.Root.AppenderRef.ref = CONSOLE</code></pre>
 </div>
 </div>
 </div>
@@ -1131,36 +1129,42 @@ rootLogger.appenderRef.0.ref = CONSOLE</code></pre>
 </div>
 <div id="_tabs_12_log4j2_xml--panel" class="tabpanel" aria-labelledby="_tabs_12_log4j2_xml">
 <div class="paragraph">
-<p>No dependency required.</p>
-</div>
+<p>JPMS users need to add:</p>
 </div>
-<div id="_tabs_12_log4j2_json--panel" class="tabpanel" aria-labelledby="_tabs_12_log4j2_json">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
-    &lt;groupId&gt;com.fasterxml.jackson.core&lt;/groupId&gt;
-    &lt;artifactId&gt;jackson-databind&lt;/artifactId&gt;
-    &lt;version&gt;${site-jackson.version}&lt;/version&gt;
-    &lt;scope&gt;runtime&lt;/scope&gt;
-&lt;/dependency&gt;</code></pre>
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">module foo.bar {
+    requires java.xml;
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>to their <code>module-info.java</code> descriptor.</p>
 </div>
 </div>
+<div id="_tabs_12_log4j2_json--panel" class="tabpanel" aria-labelledby="_tabs_12_log4j2_json">
+<div class="paragraph">
+<p>No dependency required.</p>
+</div>
 </div>
 <div id="_tabs_12_log4j2_yaml--panel" class="tabpanel" aria-labelledby="_tabs_12_log4j2_yaml">
 <div class="listingblock">
 <div class="content">
 <pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
-    &lt;groupId&gt;com.fasterxml.jackson.dataformat&lt;/groupId&gt;
-    &lt;artifactId&gt;jackson-dataformat-yaml&lt;/artifactId&gt;
-    &lt;version&gt;${site-jackson.version}&lt;/version&gt;
-    &lt;scope&gt;runtime&lt;/scope&gt;
+    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
+    &lt;artifactId&gt;log4j-config-yaml&lt;/artifactId&gt;
 &lt;/dependency&gt;</code></pre>
 </div>
 </div>
 </div>
 <div id="_tabs_12_log4j2_properties--panel" class="tabpanel" aria-labelledby="_tabs_12_log4j2_properties">
-<div class="paragraph">
-<p>No dependency required.</p>
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-xml hljs" data-lang="xml">&lt;dependency&gt;
+    &lt;groupId&gt;org.apache.logging.log4j&lt;/groupId&gt;
+    &lt;artifactId&gt;log4j-config-properties&lt;/artifactId&gt;
+&lt;/dependency&gt;</code></pre>
+</div>
 </div>
 </div>
 </div>
@@ -1187,26 +1191,36 @@ rootLogger.appenderRef.0.ref = CONSOLE</code></pre>
 </div>
 <div id="_tabs_13_log4j2_xml--panel" class="tabpanel" aria-labelledby="_tabs_13_log4j2_xml">
 <div class="paragraph">
-<p>No dependency required.</p>
+<p>JPMS users need to add:</p>
 </div>
-</div>
-<div id="_tabs_13_log4j2_json--panel" class="tabpanel" aria-labelledby="_tabs_13_log4j2_json">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-groovy hljs" data-lang="groovy">runtimeOnly 'com.fasterxml.jackson.core:jackson-databind:${site-jackson.version}'</code></pre>
+<pre class="highlightjs highlight"><code class="language-java hljs" data-lang="java">module foo.bar {
+    requires java.xml;
+}</code></pre>
+</div>
+</div>
+<div class="paragraph">
+<p>to their <code>module-info.java</code> descriptor.</p>
+</div>
 </div>
+<div id="_tabs_13_log4j2_json--panel" class="tabpanel" aria-labelledby="_tabs_13_log4j2_json">
+<div class="paragraph">
+<p>No dependency required.</p>
 </div>
 </div>
 <div id="_tabs_13_log4j2_yaml--panel" class="tabpanel" aria-labelledby="_tabs_13_log4j2_yaml">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-groovy hljs" data-lang="groovy">runtimeOnly 'com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:${site-jackson.version}'</code></pre>
+<pre class="highlightjs highlight"><code class="language-groovy hljs" data-lang="groovy">runtimeOnly 'org.apache.logging.log4j:log4j-config-yaml'</code></pre>
 </div>
 </div>
 </div>
 <div id="_tabs_13_log4j2_properties--panel" class="tabpanel" aria-labelledby="_tabs_13_log4j2_properties">
-<div class="paragraph">
-<p>No dependency required.</p>
+<div class="listingblock">
+<div class="content">
+<pre class="highlightjs highlight"><code class="language-groovy hljs" data-lang="groovy">runtimeOnly 'org.apache.logging.log4j:log4j-config-properties'</code></pre>
+</div>
 </div>
 </div>
 </div>
diff --git a/manual/scripts.html b/manual/scripts.html
index 8f2ec1a07f..414de6d4a6 100644
--- a/manual/scripts.html
+++ b/manual/scripts.html
@@ -280,7 +280,7 @@
 <td class="content">
 <div class="paragraph">
 <p>In order to enable a scripting language, its name must be included in the
-<a href="systemproperties.html#log4j2.scriptEnableLanguages" class="xref page">log4j2.scriptEnableLanguages</a>
+<a href="systemproperties.html#log4j.script.enableLanguages" class="xref page">log4j.script.enableLanguages</a>
 configuration property.</p>
 </div>
 </td>
@@ -585,62 +585,48 @@ container plugin in the configuration file.</p>
 <div id="_tabs_1_java_properties--panel" class="tabpanel" aria-labelledby="_tabs_1_java_properties">
 <div class="listingblock">
 <div class="content">
-<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">appender.0.type = Console
-appender.0.name = STDOUT
-appender.0.layout.type = PatternLayout
+<pre class="highlightjs highlight"><code class="language-properties hljs" data-lang="properties">Appenders.Console.name = STDOUT
 
-appender.0.layout.selector = ScriptPatternSelector
-appender.0.layout.selector.defaultPattern = %d %p %m%n
-appender.0.layout.selector.scriptRef.type = ScriptRef
-appender.0.layout.selector.scriptRef.ref = SELECTOR_SCRIPT
-appender.0.layout.selector.match[0].type = PatternMatch
-appender.0.layout.selector.match[0].key = NoLocation
-appender.0.layout.selector.match[0].pattern = [%-5level] %c{1.} %msg%n
-appender.0.layout.selector.match[1].type = PatternMatch
-appender.0.layout.selector.match[1].key = Flow
-appender.0.layout.selector.match[1].pattern = \
+Appenders.Console.PatternLayout.ScriptPatternSelector.defaultPattern = %d %p %m%n
+Appenders.Console.PatternLayout.ScriptPatternSelector.ScriptRef.ref = SELECTOR_SCRIPT
+Appenders.Console.PatternLayout.ScriptPatternSelector.PatternMatch[1].key = NoLocation
+Appenders.Console.PatternLayout.ScriptPatternSelector.PatternMatch[1].pattern = [%-5level] %c{1.} %msg%n
+Appenders.Console.PatternLayout.ScriptPatternSelector.PatternMatch[2].key = Flow
+Appenders.Console.PatternLayout.ScriptPatternSelector.PatternMatch[2].pattern = \
   [%-5level] %c{1.} ====== %C{1.}.%M:%L %msg ======%n
 
-logger.0.name = EventLogger
-logger.0.filter.0.type = ScriptFilter
-logger.0.filter.0.onMatch = ACCEPT
-logger.0.filter.0.onMismatch = DENY
-logger.0.filter.0.script.type = Script
-logger.0.filter.0.script.name = EVENT_LOGGER_FILTER
-logger.0.filter.0.script.language = groovy
-logger.0.filter.0.script.scriptText = \
-  if (logEvent.getMarker() != null\
-      &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW"))) {\
+Loggers.Logger.name = EventLogger
+Loggers.Logger.ScriptFilter.onMatch = ACCEPT
+Loggers.Logger.ScriptFilter.onMismatch = DENY
+Loggers.Logger.ScriptFilter.Script.name = EVENT_LOGGER_FILTER
+Loggers.Logger.ScriptFilter.Script.language = groovy
+Loggers.Logger.ScriptFilter.Script.scriptText = \
+  if (logEvent.getMarker() != null &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW"))) {\
     return true;\
   } else if (logEvent.getContextMap().containsKey("UserId")) {\
     return true;\
   }\
   return false;
 
-rootLogger.level = INFO
-rootLogger.filter.0.type = ScriptFilter
-rootLogger.filter.0.onMatch = ACCEPT
-rootLogger.filter.0.onMismatch = DENY
-rootLogger.filter.0.scriptRef.type = ScriptRef
-rootLogger.filter.0.scriptRef.ref = ROOT_FILTER
-rootLogger.appenderRef.0.ref = STDOUT
+Loggers.Root.level = INFO
+Loggers.Root.ScriptFilter.onMatch = ACCEPT
+Loggers.Root.ScriptFilter.onMismatch = DENY
+Loggers.Root.ScriptFilter.ScriptRef.ref = ROOT_FILTER
+Loggers.Root.AppenderRef.ref = STDOUT
 
-script.0.type = Script
-script.0.name = SELECTOR_SCRIPT
-script.0.language = javascript
-script.0.scriptText = \
+Scripts.Script.name = SELECTOR_SCRIPT
+Scripts.Script.language = javascript
+Scripts.Script.scriptText = \
   var result;\
   if (logEvent.getLoggerName().equals("JavascriptNoLocation")) {\
     result = "NoLocation";\
-  } else if (logEvent.getMarker() != null\
-      &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW")) {\
+  } else if (logEvent.getMarker() != null &amp;&amp; logEvent.getMarker().isInstanceOf("FLOW")) {\
     result = "Flow";\
   }\
   result;
 
-script.1.type = ScriptFile
-script.1.name = ROOT_FILTER
-script.1.path = scripts/filter.groovy</code></pre>
+Scripts.ScriptFile.name = ROOT_FILTER
+Scripts.ScriptFile.path = scripts/filter.groovy</code></pre>
 </div>
 </div>
 </div>
diff --git a/sitemap.xml b/sitemap.xml
index f31db1554f..9d5d5a4942 100644
--- a/sitemap.xml
+++ b/sitemap.xml
@@ -2,186 +2,186 @@
 <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
 <url>
 <loc>https://logging.apache.org/log4j/3.x/articles.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/development.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/download.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/faq.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/getting-started.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/index.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/javadoc.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-1.2-api.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-api.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-docker.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-flume-ng.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-iostreams.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-jpl.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-jul.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-slf4j-impl.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-slf4j2-impl.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-spring-cloud-config-client.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-to-jul.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/log4j-to-slf4j.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/api.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/appenders.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/architecture.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/async.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/cloud.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/configuration.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/customconfig.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/dependencyinjection.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/extending.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/filters.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/garbagefree.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/index.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/installation.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/jmx.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/json-template-layout.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/layouts.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/logsep.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/lookups.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/migration.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/performance.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/plugins.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/scripts.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/systemproperties.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/manual/usage.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/plugin-reference.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/release-notes.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 <url>
 <loc>https://logging.apache.org/log4j/3.x/thanks.html</loc>
-<lastmod>2024-05-28T10:37:49.264Z</lastmod>
+<lastmod>2024-05-28T13:19:19.044Z</lastmod>
 </url>
 </urlset>