[logback-user] turn off stack traces in one appender, leave them on in another
Steve Cohen
scohen at javactivity.org
Wed Jan 30 16:41:04 CET 2013
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.
More information about the Logback-user
mailing list