ITraceWriterExtensions.Trace Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Trace(ITraceWriter, HttpRequestMessage, String, TraceLevel, Exception) | Indicates the trace listeners in the Listeners collection. |
![]() ![]() | Trace(ITraceWriter, HttpRequestMessage, String, TraceLevel, Exception, String, Object[]) | Indicates the trace listeners in the Listeners collection. |
![]() ![]() | Trace(ITraceWriter, HttpRequestMessage, String, TraceLevel, String, Object[]) | Indicates the trace listeners in the Listeners collection. |
ITraceWriterExtensions.Trace Method (ITraceWriter, HttpRequestMessage, String, TraceLevel, Exception)
Indicates the trace listeners in the Listeners collection.
public static void Trace( this ITraceWriter traceWriter, HttpRequestMessage request, string category, TraceLevel level, Exception exception )
Parameters
- traceWriter
-
Type:
System.Web.Http.Tracing.ITraceWriter
The ITraceWriter.
- request
-
Type:
System.Net.Http.HttpRequestMessage
The HttpRequestMessage with which to associate the trace. It may be null.
- category
-
Type:
System.String
The logical category of the trace.
- level
-
Type:
System.Web.Http.Tracing.TraceLevel
The trace level.
- exception
-
Type:
System.Exception
The error occurred during execution.
ITraceWriterExtensions.Trace Method (ITraceWriter, HttpRequestMessage, String, TraceLevel, Exception, String, Object[])
Indicates the trace listeners in the Listeners collection.
public static void Trace( this ITraceWriter traceWriter, HttpRequestMessage request, string category, TraceLevel level, Exception exception, string messageFormat, params object[] messageArguments )
Parameters
- traceWriter
-
Type:
System.Web.Http.Tracing.ITraceWriter
The ITraceWriter.
- request
-
Type:
System.Net.Http.HttpRequestMessage
The HttpRequestMessage with which to associate the trace. It may be null.
- category
-
Type:
System.String
The logical category of the trace.
- level
-
Type:
System.Web.Http.Tracing.TraceLevel
The trace level.
- exception
-
Type:
System.Exception
The error occurred during execution.
- messageFormat
-
Type:
System.String
The format of the message.
- messageArguments
-
Type:
System.Object[]
The message argument.
ITraceWriterExtensions.Trace Method (ITraceWriter, HttpRequestMessage, String, TraceLevel, String, Object[])
Indicates the trace listeners in the Listeners collection.
public static void Trace( this ITraceWriter traceWriter, HttpRequestMessage request, string category, TraceLevel level, string messageFormat, params object[] messageArguments )
Parameters
- traceWriter
-
Type:
System.Web.Http.Tracing.ITraceWriter
The ITraceWriter.
- request
-
Type:
System.Net.Http.HttpRequestMessage
The HttpRequestMessage with which to associate the trace. It may be null.
- category
-
Type:
System.String
The logical category of the trace.
- level
-
Type:
System.Web.Http.Tracing.TraceLevel
The TraceLevel of the trace.
- messageFormat
-
Type:
System.String
The format of the message.
- messageArguments
-
Type:
System.Object[]
The message argument.

