This is an automated email from the ASF dual-hosted git repository.

freeandnil pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git

commit aa827bb1240841865fa279e2cb959204b6b560af
Merge: 3395d8e5 eb13d411
Author: Jan Friedrich <[email protected]>
AuthorDate: Mon Dec 8 08:52:53 2025 +0100

    added NewLineHandling to RemoteSyslogAppender - fixes #274
    
    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.

 doc/MailTemplate.Announce.txt                      |  8 +--
 doc/MailTemplate.Result.txt                        |  4 +-
 doc/MailTemplate.txt                               |  6 +-
 package-lock.json                                  |  4 +-
 package.json                                       |  4 +-
 pom.xml                                            |  2 +-
 scripts/build-preview.ps1                          |  2 +-
 scripts/build-release.ps1                          |  2 +-
 .../{3.2.1 => 3.3.0}/.release-notes.adoc.ftl       |  0
 src/changelog/{3.2.1 => 3.3.0}/.release.xml        |  4 +-
 .../{3.2.1 => 3.3.0}/268-shorten-test-output.xml   |  0
 src/changelog/3.3.0/274-newline-handling.xml       | 12 ++++
 .../Appender/RemoteSyslogAppenderTest.cs           | 81 ++++++++++++++++++++--
 src/log4net/Appender/RemoteSyslogAppender.cs       | 59 ++++++++++++++--
 src/log4net/log4net.csproj                         |  6 +-
 .../appenders/remotesyslogappender.adoc            | 78 +++++++++++++++------
 16 files changed, 217 insertions(+), 55 deletions(-)

Reply via email to