C# Class System.Diagnostics.TracerSourceExtensions

Provides usability overloads for tracing to a ITraceSource.
Datei anzeigen Open project: netfx/extensions

Public Methods

Method Description
StartActivity ( this source, string format ) : IDisposable

Starts a new activity scope.

TraceData ( this source, TraceEventType eventType, object data ) : void

Traces data with the given associated TraceEventType.

TraceError ( this source, Exception exception ) : void

Traces an event of type TraceEventType.Error with the given exception, using the Exception.Message as the trace event message.

TraceError ( this source, Exception exception, string format ) : void

Traces an event of type TraceEventType.Error with the given exception, format string and arguments.

TraceError ( this source, string format ) : void

Traces an event of type TraceEventType.Error with the given format string and arguments.

TraceInformation ( this source, string message ) : void

Traces an event of type TraceEventType.Information with the given message;

TraceVerbose ( this source, string message ) : void

Traces an event of type TraceEventType.Verbose with the given message.

TraceWarning ( this source, string message ) : void

Traces an event of type TraceEventType.Warning with the given message;

Method Details

StartActivity() public static method

Starts a new activity scope.
public static StartActivity ( this source, string format ) : IDisposable
source this
format string
return IDisposable

TraceData() public static method

Traces data with the given associated TraceEventType.
public static TraceData ( this source, TraceEventType eventType, object data ) : void
source this
eventType TraceEventType
data object
return void

TraceError() public static method

Traces an event of type TraceEventType.Error with the given exception, using the Exception.Message as the trace event message.
public static TraceError ( this source, Exception exception ) : void
source this
exception Exception
return void

TraceError() public static method

Traces an event of type TraceEventType.Error with the given exception, format string and arguments.
public static TraceError ( this source, Exception exception, string format ) : void
source this
exception Exception
format string
return void

TraceError() public static method

Traces an event of type TraceEventType.Error with the given format string and arguments.
public static TraceError ( this source, string format ) : void
source this
format string
return void

TraceInformation() public static method

Traces an event of type TraceEventType.Information with the given message;
public static TraceInformation ( this source, string message ) : void
source this
message string
return void

TraceVerbose() public static method

Traces an event of type TraceEventType.Verbose with the given message.
public static TraceVerbose ( this source, string message ) : void
source this
message string
return void

TraceWarning() public static method

Traces an event of type TraceEventType.Warning with the given message;
public static TraceWarning ( this source, string message ) : void
source this
message string
return void