log4net SDK Reference |

# StringMatchFilter.StringToMatch Property

Sets the static string to match

[Visual Basic]
Public Property StringToMatch As String
[C#]
public string StringToMatch {get; set;}

#### 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

StringMatchFilter Class | log4net.Filter Namespace