Scott, Filters can be added via a configuration file. It used to be the case that filter configuration was only supported in xml file and not property files. But that may be different now. You may want to look through the PropertyConfigurator code to see if it does anything with filters.
-Mark > -----Original Message----- > From: Klein, Scott @ TW [mailto:[EMAIL PROTECTED]] > Sent: Friday, June 07, 2002 11:58 AM > To: Log4J-User (E-mail) > Subject: Filters and configuration > > > Are filters meant only to be added programatically, or can > they also be > added in the configuration file? I have not seen mention of > them in any > sample config files I have seen so I am assuming they must be added > programtically - however, the appenders (I assume) use a > LevelRangeFilter by > default but this is not set by anything like: > > log4j.appender.MyAppender.filter=MyFirstFilter > log4j.appender.MyAppender.filter=MySecondFilter > > log4j.filter.MyFirstFilter=com.foo.MyFirstFilter > log4j.filter.MyFirstFilter.attribute1=value1 > log4j.filter.MySecondFilter=com.foo.MySecondFilter > log4j.filter.MySecondFilter.attribute2=value2 > > which would be my first inclination.... > > _______________________________ > Scott Klein > > L-3 Communications > Telemetry-West > 9020 Balboa Avenue > San Diego, CA 92123-3507 > > 858.694.7787 > [EMAIL PROTECTED] > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
