[logback-user] ThrowableProxy and instanceof in EventEvaluator

Hontvári József hontvari at flyordie.com
Mon Sep 28 11:44:31 CEST 2009


Done:   http://jira.qos.ch/browse/LBCLASSIC-155
Thanks for the reply.


Ceki Gulcu írta:
> Hello Hontvári,
>
> Looks like a bug. Could you please create a jira issue at jira.qos.ch?
>
> Thank you,
>
> Hontvári József wrote:
>> In an event evaluator called in an option of an "ex" formatting 
>> specifier I would use a "throwable instanceof example" expression.
>> This is the same as in Example 5.3 in the documentation, which also 
>> uses instanceof.
>>
>> This doesn't work because the throwable object is not a Throwable but 
>> a ThrowableProxy.
>>
>> Again, at another place, in the table at the beginning of the 
>> "Evaluator Filters taking Java Expressions" section in chapter 
>> Filters it is shown that the type of throwable is Throwable (annd not 
>> ThrowableProxy).
>>
>> Somehow I still get a ThrowableProxy instead of Throwable.
>>
>>




More information about the Logback-user mailing list