LoggerMatchFilter AcceptOnMatch Property | Apache log4net™ SDK Documentation

Accept when matching LoggerToMatch

Namespace: log4net.Filter
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public bool AcceptOnMatch { get; set; }

    Public Property AcceptOnMatch As Boolean
    	Get
    	Set

    public:
    property bool AcceptOnMatch {
    	bool get ();
    	void set (bool value);
    }

    member AcceptOnMatch : bool with get, set

#### Property Value

Type: Boolean
Remarks

The AcceptOnMatch property is a flag that determines the behavior when a matching Level is found. If the flag is set to true then the filter will Accept the logging event, otherwise it will Deny the event.

The default is true i.e. to Accept the event.

See Also

#### Reference

LoggerMatchFilter Class
log4net.Filter Namespace