Hi there -

I've been trying out the filters in jakarta-log4j-sandbox, and I've been
having trouble with the ThrowableClassMatchFilter.

The "throwableClass" parameter is of type "java.lang.Class", so
initialization via a property file always fails because the PropertySetter
class does javabean-style initialization.  I don't think properties are
allowed to be of type Class.

I've attached a modified version of the ThrowableClassMatchFilter that uses
a string property for throwableClass.

I've also written a ThrowablePackageMatchFilter to filter on the package
name of the Throwable, if anyone is interested.

Ken
 <<ThrowableClassMatchFilter.java>> 

Attachment: ThrowableClassMatchFilter.java
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to