[logback-user] Filter Throwable from Appender

Markus Krainz ldm at gmx.at
Wed Feb 23 12:28:15 CET 2011


Hi,

I am using two Appenders |ConsoleAppender and my own custom
Gui||Appender which extends OutputStreamAppender. This works well.

I do not want the GuiAppender to append Stacktraces. So if I do e.g.
logger.error("Core: ERROR importing map.\n",ex); the "Throwable
ex"-Stacktrace should get to ||ConsoleAppender||but not to ||Gui||Appender.

I am relatively new to Logback and I appreciate any help with this.

Regards,
Markus
|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110223/338edd17/attachment.html>


More information about the Logback-user mailing list