Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

LoggerMatchFilter.Decide�Method�

Check if this filter should allow the event to be logged

[Visual�Basic]
Overrides�Public�Function�Decide( _
���ByVal loggingEvent�As�LoggingEvent�_
)�As�FilterDecision�_
����Implements�IFilter.Decide
[C#]
public�override�FilterDecision�Decide(
���LoggingEventloggingEvent
);

Parameters

loggingEvent
the event being logged

Return Value

see remarks

Implements

IFilter.Decide

Remarks

The rendered message is matched against the LoggerToMatch. If the LoggerToMatch equals the beginning of the incoming LoggerName (StartsWith) then a match will have occurred. If no match occurs this function will return Neutral allowing other filters to check the event. If a match occurs then the value of AcceptOnMatch is checked. If it is true then Accept is returned otherwise Deny is returned.

See Also

LoggerMatchFilter Class | log4net.Filter Namespace