SystemDiagnosticsTraceWriter Class
Implementation of ITraceWriter that traces to Trace
Namespace: System.Web.Http.Tracing
Assembly: System.Web.Http.Tracing (in System.Web.Http.Tracing.dll)
The SystemDiagnosticsTraceWriter type exposes the following members.
| 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. |
| 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. |
| Name | Description | |
|---|---|---|
![]() | Debug(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.) |
![]() | Debug(HttpRequestMessage, String, String, array<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.) |
![]() | Debug(HttpRequestMessage, String, Exception, String, array<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.) |
![]() | Error(HttpRequestMessage, String, Exception) | Overloaded. Displays an error message in the list with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.) |
![]() | Error(HttpRequestMessage, String, String, array<Object>) | Overloaded. Displays an error message in the list with the specified writer, request, category, message format and argument. (Defined by ITraceWriterExtensions.) |
![]() | Error(HttpRequestMessage, String, Exception, String, array<Object>) | Overloaded. Displays an error message in the list with the specified writer, request, category, exception, message format and argument. (Defined by ITraceWriterExtensions.) |
![]() | Fatal(HttpRequestMessage, String, Exception) | Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and exception. (Defined by ITraceWriterExtensions.) |
![]() | Fatal(HttpRequestMessage, String, String, array<Object>) | Overloaded. Displays an error message in the ITraceWriterExtensions class with the specified writer, request, category and message format and argument. (Defined by ITraceWriterExtensions.) |
![]() | Fatal(HttpRequestMessage, String, Exception, String, array<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.) |
![]() | Info(HttpRequestMessage, String, Exception) | Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.) |
![]() | Info(HttpRequestMessage, String, String, array<Object>) | Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.) |
![]() | Info(HttpRequestMessage, String, Exception, String, array<Object>) | Overloaded. Displays the details in the [System.Web.Http.Tracing.ITraceWriterExtensions]. (Defined by ITraceWriterExtensions.) |
![]() | Trace(HttpRequestMessage, String, TraceLevel, Exception) | Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.) |
![]() | Trace(HttpRequestMessage, String, TraceLevel, String, array<Object>) | Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.) |
![]() | Trace(HttpRequestMessage, String, TraceLevel, Exception, String, array<Object>) | Overloaded. Indicates the trace listeners in the Listeners collection. (Defined by ITraceWriterExtensions.) |
![]() | TraceBeginEnd | Traces both a begin and an end trace around a specified operation. (Defined by ITraceWriterExtensions.) |
![]() | TraceBeginEndAsync(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.) |
![]() | TraceBeginEndAsync<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.) |
![]() | Warn(HttpRequestMessage, String, Exception) | Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.) |
![]() | Warn(HttpRequestMessage, String, String, array<Object>) | Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.) |
![]() | Warn(HttpRequestMessage, String, Exception, String, array<Object>) | Overloaded. Indicates the warning level of execution. (Defined by ITraceWriterExtensions.) |
Show:



