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

Provides usability overloads for tracing to a ITraceSource.
Показать файл Открыть проект

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

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

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

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

Starts a new activity scope.
public static StartActivity ( this source, string format ) : IDisposable
source this
format string
Результат IDisposable

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

Traces data with the given associated TraceEventType.
public static TraceData ( this source, TraceEventType eventType, object data ) : void
source this
eventType TraceEventType
data object
Результат void

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

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

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

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

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

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

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

Traces an event of type TraceEventType.Information with the given message;
public static TraceInformation ( this source, string message ) : void
source this
message string
Результат void

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

Traces an event of type TraceEventType.Verbose with the given message.
public static TraceVerbose ( this source, string message ) : void
source this
message string
Результат void

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

Traces an event of type TraceEventType.Warning with the given message;
public static TraceWarning ( this source, string message ) : void
source this
message string
Результат void