Hi Nicko, Thanks.
I know and tried it. But it doesn't work and I don't know why. I tried all Filters from log4net and my own one, started my real or test app with and configured log4net. Then I looked into the lo4net root logger and it's appenders (via Quick Watch) and all filters are in the filter chain of my RollingLogFileAppender, except log4net's LoggerMatchFilter and my own one. Either if my own one inherits the LoggerMatchFilter or the filter base class. Marco > -------- Original-Nachricht -------- > Datum: Mon, 29 May 2006 02:28:41 +0100 > Von: Nicko Cadell <[EMAIL PROTECTED]> > An: Log4NET User <[email protected]> > Betreff: RE: LoggerMatchFilter question > > You can implement a filter in your own assembly and reference it in the > configuration file. This should mean that you can make a filter that suites > your requirements. > > Cheers, > Nicko > > > -----Original Message----- > > From: Marco von Frieling [mailto:[EMAIL PROTECTED] > > Sent: 17 May 2006 12:35 > > To: Log4NET User > > Subject: LoggerMatchFilter question > > > > Hello. > > > > I would log messages from all types of a specific module (e. > > g. caching) to an extra appender, lets say to a > > TraceAppender. "Module" means that the classes > > functionalities are related to one topic, but they are in > > different namespaces and possibly different assemblies. So I > > thought I could use the LoggerMatchFilter for this, but it > > does not work because the filter uses the > > string.StartsWith() method. > > But for my szenario it should use the string.Contains() > > method. Why is does that filter not exist? Maybe you could > > implement it in the same filter with an additional parameter > > > > <param name="useContains" value="true"/> > > > > with the default set to false, so that this extension does > > not change current behavior? > > > > Marco > > > > > -- > > Marco von Frieling > > In den Ackern 8 > > D-27374 Wittorf > > > > eMail: [EMAIL PROTECTED] > > > > Echte DSL-Flatrate dauerhaft für 0,- Euro*! > > "Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl > > > > -- Marco von Frieling In den Ackern 8 D-27374 Wittorf eMail: [EMAIL PROTECTED] Bis zu 70% Ihrer Onlinekosten sparen: GMX SmartSurfer! Kostenlos downloaden: http://www.gmx.net/de/go/smartsurfer
