C# Класс System.Diagnostics.TracerExtensibility

Provides low-level manipulation of the current ITracer implementation.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

AddListener() публичный статический Метод

Adds a listener to the source with the given sourceName.
public static AddListener ( string sourceName, TraceListener listener ) : void
sourceName string
listener TraceListener
Результат void

RemoveListener() публичный статический Метод

Removes a listener from the source with the given sourceName.
public static RemoveListener ( string sourceName, string listenerName ) : void
sourceName string
listenerName string
Результат void

RemoveListener() публичный статический Метод

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
Результат void

SetTracer() публичный статический Метод

Sets the Tracer internal ITracer implementation.
public static SetTracer ( ITracer tracer ) : IDisposable
tracer ITracer The tracer to replace the default diagnostics tracer with.
Результат IDisposable

SetTracingLevel() публичный статический Метод

Sets the tracing level for the source with the given sourceName
public static SetTracingLevel ( string sourceName, SourceLevels level ) : void
sourceName string
level SourceLevels
Результат void