You could develop such a filter yourself by running the FilterSkeleton subclass.
But instead of creating a specialized filter like this, I suggest you rather implement a more general filter that can be configured to contain a set of filters and apply an operator to them. The configuration might look something like this:
<filter type="CompositeFilter"> <operator value="Or" /> <filters> <filter type="log4net.Filter.PropertyFilter"> <stringToMatch value="value1" /> </filter> <filter type="log4net.Filter.PropertyFilter"> <stringToMatch value="value2" /> </filter> </filters> </filter>
If you make such a filter, I recommend that you send it to the log4net project. This would be useful for the general public :)
source share