MSDN Library

SystemDiagnosticsTraceWriter Class

Implementation of ITraceWriter that traces to Trace

System.Object
  System.Web.Http.Tracing.SystemDiagnosticsTraceWriter

Namespace:  System.Web.Http.Tracing
Assembly:  System.Web.Http.Tracing (in System.Web.Http.Tracing.dll)

public class SystemDiagnosticsTraceWriter : ITraceWriter

The SystemDiagnosticsTraceWriter type exposes the following members.

  NameDescription
Public propertyIsVerboseGets or sets a value indicating whether the formatted message should be the verbose format, meaning it displays all fields of the TraceRecord.
Public propertyMinimumLevelGets or sets the minimum trace level.
Public propertyTraceSourceGets or sets the TraceSource to which the traces will be sent.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodFormatFormats the contents of the given TraceRecord into a single string containing comma-separated name-value pairs for each TraceRecord property.
Public methodFormatDateTimeFormats a DateTime for the trace.
Public methodFormatRequestEnvelopeFormats the given TraceRecord into a string describing either the initial receipt of the incoming request or the final send of the response, depending on TraceKind.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodTraceWrites a trace to Trace if the level is greater than or equal MinimumLevel.
Public methodTranslateHttpResponseExceptionExamines the given TraceRecord to determine whether it contains an HttpResponseException and if so, modifies the TraceRecord to capture more detailed information.
Top

  NameDescription
Public Extension MethodDebug(HttpRequestMessage, String, Exception)Overloaded. Provides a set of methods and properties that help debug your code with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.)
Public Extension MethodDebug(HttpRequestMessage, String, String, Object[])Overloaded. Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension MethodDebug(HttpRequestMessage, String, Exception, String, Object[])Overloaded. Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension MethodError(HttpRequestMessage, String, Exception)Overloaded. Displays an error message in the list with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.)
Public Extension MethodError(HttpRequestMessage, String, String, Object[])Overloaded. Displays an error message in the list with the specified writer, request, category, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension MethodError(HttpRequestMessage, String, Exception, String, Object[])Overloaded. Displays an error message in the list with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension MethodFatal(HttpRequestMessage, String, Exception)Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.)
Public Extension MethodFatal(HttpRequestMessage, String, String, Object[])Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension MethodFatal(HttpRequestMessage, String, Exception, String, Object[])Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception, message format and argument. (Defined by ITraceWriterExtensions.)
Public Extension MethodInfo(HttpRequestMessage, String, Exception)Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.)
Public Extension MethodInfo(HttpRequestMessage, String, String, Object[])Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.)
Public Extension MethodInfo(HttpRequestMessage, String, Exception, String, Object[])Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.)
Public Extension MethodTrace(HttpRequestMessage, String, TraceLevel, Exception)Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.)
Public Extension MethodTrace(HttpRequestMessage, String, TraceLevel, String, Object[])Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.)
Public Extension MethodTrace(HttpRequestMessage, String, TraceLevel, Exception, String, Object[])Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.)
Public Extension MethodTraceBeginEndTraces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.)
Public Extension MethodTraceBeginEndAsync(HttpRequestMessage, String, TraceLevel, String, String, Action<TraceRecord>, Func<Task>, Action<TraceRecord>, Action<TraceRecord>)Overloaded. Traces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.)
Public Extension MethodTraceBeginEndAsync<TResult>(HttpRequestMessage, String, TraceLevel, String, String, Action<TraceRecord>, Func<Task<TResult>>, Action<TraceRecord, TResult>, Action<TraceRecord>)Overloaded. Traces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.)
Public Extension MethodWarn(HttpRequestMessage, String, Exception)Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.)
Public Extension MethodWarn(HttpRequestMessage, String, String, Object[])Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.)
Public Extension MethodWarn(HttpRequestMessage, String, Exception, String, Object[])Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show:
© 2016 Microsoft