Skip to content

Conversation

@FreeAndNil
Copy link
Contributor

@FreeAndNil FreeAndNil commented Dec 7, 2025

added NewLineHandling to RemoteSyslogAppender - fixes #274

Before 3.3.0, newline characters (\r or \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 NewLineHandling option.
The new default is Escape.

The available modes are:

  • Escape (default since 3.3.0)
    Newlines are replaced with the escaped representations \r\\r and \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.

  • Keep
    Newlines are preserved as-is in the message content.
    Many syslog servers can process entries containing embedded newlines, but server support varies.

@FreeAndNil FreeAndNil requested a review from fluffynuts December 7, 2025 21:14
@FreeAndNil FreeAndNil added this to the 3.3.0 milestone Dec 7, 2025
@FreeAndNil FreeAndNil force-pushed the Feature/RemoteSysLogAppender-NewLineHandling branch from 7dfdee3 to eb13d41 Compare December 8, 2025 07:11
@FreeAndNil FreeAndNil merged commit aa827bb into master Dec 8, 2025
5 of 6 checks passed
@FreeAndNil FreeAndNil deleted the Feature/RemoteSysLogAppender-NewLineHandling branch December 8, 2025 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust newline handling of the RemoteSysLogAppender

2 participants