You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/04/20 19:21:56 UTC
logging-log4j2 git commit: [LOG4J2-1372] XMLLayout indents,
but not the first child tag (Event). Javadoc.
Repository: logging-log4j2
Updated Branches:
refs/heads/master ffedf33f1 -> 3095a9c07
[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/3095a9c0
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/3095a9c0
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/3095a9c0
Branch: refs/heads/master
Commit: 3095a9c07af79d25fefd6e4fa678a30984b161ba
Parents: ffedf33
Author: ggregory <gg...@apache.org>
Authored: Wed Apr 20 10:21:53 2016 -0700
Committer: ggregory <gg...@apache.org>
Committed: Wed Apr 20 10:21:53 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/3095a9c0/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 {