LOG4J2-1694 Fix layout docs
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/e5758831 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/e5758831 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/e5758831 Branch: refs/heads/master Commit: e5758831ea4f24eb34fc0a7b4223fd5da42a9385 Parents: 75e65ea Author: Mikael Ståldal <[email protected]> Authored: Tue Sep 26 21:56:33 2017 +0200 Committer: Mikael Ståldal <[email protected]> Committed: Tue Sep 26 21:56:33 2017 +0200 ---------------------------------------------------------------------- src/site/xdoc/manual/layouts.xml.vm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/e5758831/src/site/xdoc/manual/layouts.xml.vm ---------------------------------------------------------------------- diff --git a/src/site/xdoc/manual/layouts.xml.vm b/src/site/xdoc/manual/layouts.xml.vm index 83c6e47..d878a2e 100644 --- a/src/site/xdoc/manual/layouts.xml.vm +++ b/src/site/xdoc/manual/layouts.xml.vm @@ -2214,10 +2214,10 @@ at org.apache.logging.log4j.core.pattern.ExtendedThrowableTest.testException(Ext <p> To include any custom field in the output, use following syntax: <pre class="prettyprint linenums"> - <YamlLayout> + <XmlLayout> <KeyValuePair key="additionalField1" value="constant value"/> <KeyValuePair key="additionalField2" value="${dollar}${dollar}{ctx:key}"/> - </YamlLayout> + </XmlLayout> </pre> Custom fields are always last, in the order they are declared. </p>
