SystemDiagnosticsTraceWriter Class

Implementation of ITraceWriter that traces to Trace

Inheritance Hierarchy

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

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

Syntax

'Declaration
Public Class SystemDiagnosticsTraceWriter _
    Implements ITraceWriter
'Usage
Dim instance As SystemDiagnosticsTraceWriter
public class SystemDiagnosticsTraceWriter : ITraceWriter
public ref class SystemDiagnosticsTraceWriter : ITraceWriter
type SystemDiagnosticsTraceWriter =  
    class 
        interface ITraceWriter 
    end
public class SystemDiagnosticsTraceWriter implements ITraceWriter

The SystemDiagnosticsTraceWriter type exposes the following members.

Constructors

  Name Description
Public method SystemDiagnosticsTraceWriter Initializes a new instance of the SystemDiagnosticsTraceWriter class.

Top

Properties

  Name Description
Public property IsVerbose Gets or sets a value indicating whether the formatted message should be the verbose format, meaning it displays all fields of the TraceRecord.
Public property MinimumLevel Gets or sets the minimum trace level.
Public property TraceSource Gets or sets the TraceSource to which the traces will be sent.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method Format Formats the contents of the given TraceRecord into a single string containing comma-separated name-value pairs for each TraceRecord property.
Public method FormatDateTime Formats a DateTime for the trace.
Public method FormatRequestEnvelope Formats 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 method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)
Public method Trace Writes a trace to Trace if the level is greater than or equal MinimumLevel.
Public method TranslateHttpResponseException Examines the given TraceRecord to determine whether it contains an HttpResponseException and if so, modifies the TraceRecord to capture more detailed information.

Top

Thread Safety

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

See Also

Reference

System.Web.Http.Tracing Namespace