[logback-user] Filter Throwable from Appender
Markus Krainz
ldm at gmx.at
Wed Feb 23 14:48:33 CET 2011
Hi Ceki,
%nopex from [1] did the trick. Thanks!
On 2011-02-23 13:03, Ceki Gulcu wrote:
> 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.
> --
> Ceki
> [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
>
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
More information about the Logback-user
mailing list