added NewLineHandling to RemoteSyslogAppender - fixes #274#276
Merged
FreeAndNil merged 3 commits intomasterfrom Dec 8, 2025
Merged
added NewLineHandling to RemoteSyslogAppender - fixes #274#276FreeAndNil merged 3 commits intomasterfrom
FreeAndNil merged 3 commits intomasterfrom
Conversation
fluffynuts
approved these changes
Dec 8, 2025
7dfdee3 to
eb13d41
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added NewLineHandling to RemoteSyslogAppender - fixes #274
Before 3.3.0, newline characters (
\ror\n) were always treated as line breaks.Messages containing newlines were therefore split into multiple syslog entries.
Starting with 3.3.0, newline handling is configurable through the
NewLineHandlingoption.The new default is
Escape.The available modes are:
Escape(default since 3.3.0)Newlines are replaced with the escaped representations
\r→\\rand\n→\\n.The message is sent as a single syslog entry.
Split(default before 3.3.0)The message is split at each newline into multiple syslog entries.
Combined sequences (\r\n) count as a single break.
This matches the behaviour in versions before 3.3.0.
KeepNewlines are preserved as-is in the message content.
Many syslog servers can process entries containing embedded newlines, but server support varies.