diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JSONLayout.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JSONLayout.java index 9b2bd7c9755..e24abe26f7b 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JSONLayout.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/layout/JSONLayout.java @@ -42,7 +42,7 @@ *
* If you configure {@code complete="true"}, the appender outputs a well-formed JSON document. * By default, with {@code complete="false"}, you should include the - * output as an external file in a separate file to form a well-formed JSON document. + * output in an external file to form a well-formed JSON document. *
** A well-formed JSON document follows this pattern: @@ -77,7 +77,7 @@ * Appenders using this layout should have their {@code charset} set to {@code UTF-8} or {@code UTF-16}, otherwise * events containing non ASCII characters could result in corrupted log files. *
- ** By default, the JSON layout is not compact (a.k.a. not "pretty") with {@code compact="false"}, which means the * appender uses end-of-line characters and indents lines to format the text. If {@code compact="true"}, then no @@ -125,7 +125,7 @@ protected JSONLayout(final boolean locationInfo, final boolean properties, final * * @param event * The LogEvent. - * @return The XML representation of the LogEvent. + * @return The JSON representation of the LogEvent. */ @Override public String toSerializable(final LogEvent event) { @@ -320,13 +320,13 @@ public byte[] getFooter() { } /** - * XMLLayout's content format is specified by: + * JSONLayout's content format is specified by: *
* Key: "dtd" Value: "log4j-events.dtd" * * Key: "version" Value: "2.0" * - * @return Map of content format keys supporting XMLLayout + * @return Map of content format keys supporting JSONLayout */ @Override public Map