EventSourceLogger.SetFilters(String[]) Method

Definition

Sets or clears filters for log messages.

public static void SetFilters(params string[] filters);
static member SetFilters : string[] -> unit
Public Shared Sub SetFilters (ParamArray filters As String())

Parameters

filters
String[]

Filters to use, or an empty array to clear previously set filters

Remarks

Once filters are set, EventSource events will be written only if the log message contains at least one of the strings specified by the filters. The match is case sensitive.

Applies to