EventSourceLogger.SetFilters(String[]) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.