RE: filtering on message source

2005-12-13 Thread Nicko Cadell
> -Original Message- > From: Dalton, Barnaby [mailto:[EMAIL PROTECTED] > Sent: 08 December 2005 08:06 > To: Log4NET User > Subject: RE: filtering on message source > > > Thanks, > Do I need to create a logger named > Company.Project.UI.Login/Lo

RE: filtering on message source

2005-12-08 Thread Dalton, Barnaby
3:51 > To: Log4NET User > Subject: Re: filtering on message source > > > Here's how to use it: > > > > > > > > --- Ron Grabowski <[EMAIL PROTECTED]> wrote: > > > public class CustomFilter : FilterSkeleton > > { &

Re: filtering on message source

2005-12-06 Thread Ron Grabowski
Here's how to use it: --- Ron Grabowski <[EMAIL PROTECTED]> wrote: > public class CustomFilter : FilterSkeleton > { > private Level logLevelEqualOrAbove = Level.All; > private Hashtable acceptAllMessagesLookup = new Hashtable(); > > public override FilterDecision Decide(Loggin

Re: filtering on message source

2005-12-06 Thread Ron Grabowski
public class CustomFilter : FilterSkeleton { private Level logLevelEqualOrAbove = Level.All; private Hashtable acceptAllMessagesLookup = new Hashtable(); public override FilterDecision Decide(LoggingEvent loggingEvent) { if (acceptAllMessagesLookup.Contains(loggingEvent.LoggerName)) { r

RE: filtering on message source

2005-12-06 Thread Dalton, Barnaby
December 2005 04:24 > To: Log4NET User > Subject: Re: filtering on message source > > > It sounds like you need to write a custom filter that looks like this: > > > > > > > > That would accept all messages from Login and Logout and only

Re: filtering on message source

2005-12-05 Thread Ron Grabowski
It sounds like you need to write a custom filter that looks like this: That would accept all messages from Login and Logout and only those messages from other loggers that are WARN or above. Is that correct? --- "Dalton, Barnaby" <[EMAIL PROTECTED]> wrote: > > I need to combine m