C# Class System.Diagnostics.TracerExtensibility

Provides low-level manipulation of the current ITracer implementation.
Datei anzeigen Open project: netfx/extensions

Public Methods

Method 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 method

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

RemoveListener() public static method

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

RemoveListener() public static method

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
return void

SetTracer() public static method

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

SetTracingLevel() public static method

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