You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Ke...@bmwna.com on 2003/09/19 19:42:55 UTC
ThrowableClassMatchFilter doesn't work with config files
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>>