C# Class System.Diagnostics.TracerExtensibility

Provides low-level manipulation of the current ITracer implementation.
Afficher le fichier Open project: netfx/extensions

Méthodes publiques

Méthode Description
AddListener ( string sourceName, TraceListener listener ) : void

Adds a listener to the source with the given sourceName.

RemoveListener ( string sourceName, string listenerName ) : void

Removes a listener from the source with the given sourceName.

RemoveListener ( this tracer, string sourceName, string listenerName ) : void

Removes the listener with the given name from the specified source.

SetTracer ( ITracer tracer ) : IDisposable

Sets the Tracer internal ITracer implementation.

SetTracingLevel ( string sourceName, SourceLevels level ) : void

Sets the tracing level for the source with the given sourceName

Method Details

AddListener() public static méthode

Adds a listener to the source with the given sourceName.
public static AddListener ( string sourceName, TraceListener listener ) : void
sourceName string
listener TraceListener
Résultat void

RemoveListener() public static méthode

Removes a listener from the source with the given sourceName.
public static RemoveListener ( string sourceName, string listenerName ) : void
sourceName string
listenerName string
Résultat void

RemoveListener() public static méthode

Removes the listener with the given name from the specified source.
public static RemoveListener ( this tracer, string sourceName, string listenerName ) : void
tracer this
sourceName string
listenerName string
Résultat void

SetTracer() public static méthode

Sets the Tracer internal ITracer implementation.
public static SetTracer ( ITracer tracer ) : IDisposable
tracer ITracer The tracer to replace the default diagnostics tracer with.
Résultat IDisposable

SetTracingLevel() public static méthode

Sets the tracing level for the source with the given sourceName
public static SetTracingLevel ( string sourceName, SourceLevels level ) : void
sourceName string
level SourceLevels
Résultat void