C# 클래스 System.Diagnostics.TracerExtensibility

Provides low-level manipulation of the current ITracer implementation.
파일 보기 프로젝트 열기: netfx/extensions

공개 메소드들

메소드 설명
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