You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "ppkarwasz (via GitHub)" <gi...@apache.org> on 2026/04/14 15:39:17 UTC
Re: [PR] Add missing setters to `Rfc5424LayoutBuilder` [logging-log4j2]
ppkarwasz commented on code in PR #4076:
URL: https://github.com/apache/logging-log4j2/pull/4076#discussion_r3080675354
##########
log4j-core/src/main/java/org/apache/logging/log4j/core/layout/Rfc5424Layout.java:
##########
@@ -780,16 +938,40 @@ public Rfc5424LayoutBuilder setIncludeMDC(final boolean includeMDC) {
return this;
}
+ /**
+ * @deprecated Since 2.26.0 use {@link #setNewLine} instead.
+ */
+ @Deprecated
public Rfc5424LayoutBuilder setIncludeNL(final boolean includeNL) {
this.includeNL = includeNL;
return this;
}
+ /**
+ * @since 2.26.0
+ */
+ public Rfc5424LayoutBuilder setNewLine(boolean newLine) {
+ this.newLine = newLine;
+ return this;
+ }
+
+ /**
+ * @deprecated Since 2.26.0 use {@link #setIncludeNL} instead.
+ */
+ @Deprecated
public Rfc5424LayoutBuilder setEscapeNL(final String escapeNL) {
this.escapeNL = escapeNL;
Review Comment:
Fixed in https://github.com/apache/logging-log4j2/pull/4076/commits/f6ee827e48896662bc8868c57f5bf115faa4e12f
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@logging.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org