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 | |
---|---|---|
SystemDiagnosticsTraceWriter | Initializes a new instance of the SystemDiagnosticsTraceWriter class. |
Top
Properties
Name | Description | |
---|---|---|
IsVerbose | Gets or sets a value indicating whether the formatted message should be the verbose format, meaning it displays all fields of the TraceRecord. | |
MinimumLevel | Gets or sets the minimum trace level. | |
TraceSource | Gets or sets the TraceSource to which the traces will be sent. |
Top
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
Finalize | (Inherited from Object.) | |
Format | Formats the contents of the given TraceRecord into a single string containing comma-separated name-value pairs for each TraceRecord property. | |
FormatDateTime | Formats a DateTime for the trace. | |
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. | |
GetHashCode | (Inherited from Object.) | |
GetType | (Inherited from Object.) | |
MemberwiseClone | (Inherited from Object.) | |
ToString | (Inherited from Object.) | |
Trace | Writes a trace to Trace if the level is greater than or equal MinimumLevel. | |
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.