When using SyslogAppender, stack trace output appears in the output of the Appender, contrary to the configured (or programmed) layout.
When my SyslogAppender is used, stack traces appear in my syslog output, even though I don't want them. I've included a "%nopex" at the end of the SuffixPattern value, but this has not stopped the stack traces from appearing. I've tested a matching RollingFileAppender, where "%nopex" has the expected behavior.
I'd expect that SyslogAppender would omit stack traces by default, or at least give me a way to omit them.
I've looked at the source for SyslogAppender.java, and I see (about line 43) that the prefixPattern already includes "%nopex" so I'm at a loss as to why I'm seeing stack traces to begin with.
I've configured a SyslogAppender as follows.
The "%nopex" at the end doesn't matter. I can leave it out with identical results.
The blank space at the beginning of SuffixPattern doesn't matter either. I can leave it out with identical results.
<appender name="IDP_SYSLOG" class="ch.qos.logback.classic.net.SyslogAppender">
<SuffixPattern> [%logger:%level] %msg %mdc