That is supposed to work, but due to a bug the LevelMatchFilter does not support chaining correctly. This has been fixed in the latest source code in subversion. http://issues.apache.org/jira/browse/LOG4NET-29
You can either build a new copy of log4net from the latest sources from subversion. http://logging.apache.org/log4net/contributing.html#svn-anon If you want to keep using the latest log4net binary then you will need to build your own copy of the filter in your own assembly. The updated code for the filter is here: http://svn.apache.org/viewcvs.cgi/logging/log4net/trunk/src/Filter/Level MatchFilter.cs?view=markup Just change the namespace to something appropriate, build it in one of your assemblies, then set the type="" in the config to be the assembly qualified type name for the updated filter. Cheers, Nicko > -----Original Message----- > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Inquisitor Jax > Sent: 27 February 2006 13:15 > To: [email protected] > Subject: Multiple filters > > I would like an appender to log everything bar 2 levels > eg: I don't want to log ERROR and INFO level logs. > > What would the config look like for this? > > I've tried adding the following filters to the appender: > <filter type="log4net.Filter.LevelMatchFilter"> > <levelToMatch value="ERROR" /> > <acceptOnMatch value="false" /> > </filter> > <filter type="log4net.Filter.LevelMatchFilter"> > <levelToMatch value="INFO" /> > <acceptOnMatch value="false" /> > </filter> > > but this only rejects ERROR. > > Any suggestions welcome... > (Apologies - I've posted this same question in "Please verify > my config file") > > Jax > >
