Skip to content

Conversation

@pull
Copy link

@pull pull bot commented Dec 8, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

FreeAndNil and others added 5 commits December 8, 2025 08:08
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.
@pull pull bot locked and limited conversation to collaborators Dec 8, 2025
@pull pull bot added the ⤵️ pull label Dec 8, 2025
@pull pull bot merged commit aa827bb into lushmana:master Dec 8, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant