[LOG4J2-1372] XMLLayout indents, but not the first child tag (Event). Javadoc.
Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/287d2c6b Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/287d2c6b Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/287d2c6b Branch: refs/heads/LOG4j2-494 Commit: 287d2c6b861b2f938d0bb9dcebd897681bfb3520 Parents: 1d12bf0 Author: ggregory <[email protected]> Authored: Wed Apr 20 10:21:53 2016 -0700 Committer: Ralph Goers <[email protected]> Committed: Mon Apr 25 21:30:27 2016 -0700 ---------------------------------------------------------------------- .../org/apache/logging/log4j/core/layout/JacksonFactory.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/287d2c6b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JacksonFactory.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JacksonFactory.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JacksonFactory.java index 3b34957..ea0877f 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JacksonFactory.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JacksonFactory.java @@ -144,12 +144,14 @@ abstract class JacksonFactory { /** * When <Event>s are written into a XML file; the "Event" object is not the root element, but an element named - * <Events> created using {@link #getHeader()} and {@link #getFooter()} methods.<br/> + * <Events> created using {@link XmlLayout#getHeader()} and {@link XmlLayout#getFooter()} methods. + * <p> * {@link com.fasterxml.jackson.dataformat.xml.util.DefaultXmlPrettyPrinter} is used to print the Event object into * XML; hence it assumes <Event> tag as the root element, so it prints the <Event> tag without any * indentation. To add an indentation to the <Event> tag; hence an additional indentation for any * sub-elements, this class is written. As an additional task, to avoid the blank line printed after the ending * </Event> tag, {@link #writePrologLinefeed(XMLStreamWriter2)} method is also overridden. + * </p> */ static class Log4jXmlPrettyPrinter extends DefaultXmlPrettyPrinter {
