[logback-user] Filter Throwable from Appender

Ceki Gulcu ceki at qos.ch
Wed Feb 23 13:03:01 CET 2011

Hi Markus,

Does GuiAppender have an encoder encapsulating a PatternLayout? If so, 
read [1], in particular the %nopex conversion word. Adding it to the 
pattern you are using should do the trick.
[1] http://logback.qos.ch/manual/layouts.html#conversionWord

On 23.02.2011 12:28, Markus Krainz wrote:
> 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

More information about the Logback-user mailing list