FreeAndNil opened a new pull request, #276:
URL: https://github.com/apache/logging-log4net/pull/276
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.
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]