Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class System.​Diagnostics.​Tracing.​EventListener

Assembly: System.Diagnostics.Tracing

Inheritance: object → EventListener

Provides methods for enabling and disabling events from event sources.

Methods

public void
DisableEvents​(EventSource eventSource)
eventSource The event source to disable events for.
Disables all events for the specified event source.
public void
Dispose​()
Releases the resources used by the current instance of the <see cref="T:System.Diagnostics.Tracing.EventListener" /> class.
public void
EnableEvents​(EventSource eventSource, EventLevel level)
eventSource The event source to enable events for.
level The level of events to enable. Using EventLevel.LogAlways includes events of all levels.
Enables events for the specified event source that has the specified verbosity level or lower.
public void
EnableEvents​(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword)
eventSource The event source to enable events for.
level The level of events to enable. Using EventLevel.LogAlways includes events of all levels.
matchAnyKeyword The keyword flags necessary to enable the events.
Enables events for the specified event source that has the specified verbosity level or lower, and matching keyword flags.
public void
EnableEvents​(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword, Collections.Generic.IDictionary`2 arguments)
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object