StringMatchFilter StringToMatch Property | Apache log4net™ SDK Documentation

Sets the static string to match

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

C#
VB
C++
F#
Copy

    public string StringToMatch { get; set; }

    Public Property StringToMatch As String
    	Get
    	Set

    public:
    property String^ StringToMatch {
    	String^ get ();
    	void set (String^ value);
    }

    member StringToMatch : string with get, set

#### Property Value

Type: String
Remarks

The string that will be substring matched against the rendered message. If the message contains this string then the filter will match. If a match is found then the result depends on the value of AcceptOnMatch.

One of StringToMatch or RegexToMatch must be specified.

See Also

#### Reference

StringMatchFilter Class
log4net.Filter Namespace