> -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
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
> > {
&
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
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
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
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