[logback-user] turn off stack traces in one appender, leave them on in another

Steve Cohen scohen at javactivity.org
Wed Jan 30 17:17:20 CET 2013

To answer my own question, it appears that the %nopex layout specifier 
gives me what I need.  And I see that there are other similar options as 

On 01/30/2013 09:41 AM, Steve Cohen wrote:
> Given a configuration with two appenders, one file based and the other
> network-based, I would like to be able to code log statements with a
> throwable parameter in which the file-based one would append the
> stack-trace information contained in the throwable, but the
> network-based appender would not.  The network-based appender is
> home-brewed, descending from JMSAppenderBase.  Is there a hook in the
> appender hierarchy that would allow it to turn off appending of the
> stack trace for that appender while letting other appenders print the
> stack trace?
> Thanks.
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/logback-user

More information about the Logback-user mailing list