ITraceWriterExtensions.Debug Method
Assembly: System.Web.Http (in System.Web.Http.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Debug(ITraceWriter, HttpRequestMessage, String, Exception) | Provides a set of methods and properties that help debug your code with the specified writer, request, category and exception. |
![]() ![]() | Debug(ITraceWriter, HttpRequestMessage, String, Exception, String, Object[]) | Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument. |
![]() ![]() | Debug(ITraceWriter, HttpRequestMessage, String, String, Object[]) | Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument. |
ITraceWriterExtensions.Debug Method (ITraceWriter, HttpRequestMessage, String, Exception)
Provides a set of methods and properties that help debug your code with the specified writer, request, category and exception.
public static void Debug( this ITraceWriter traceWriter, HttpRequestMessage request, string category, 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.
- exception
-
Type:
System.Exception
The error occurred during execution.
ITraceWriterExtensions.Debug Method (ITraceWriter, HttpRequestMessage, String, Exception, String, Object[])
Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument.
public static void Debug( this ITraceWriter traceWriter, HttpRequestMessage request, string category, 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.
- 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.Debug Method (ITraceWriter, HttpRequestMessage, String, String, Object[])
Provides a set of methods and properties that help debug your code with the specified writer, request, category, exception, message format and argument.
public static void Debug( this ITraceWriter traceWriter, HttpRequestMessage request, string category, 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.
- messageFormat
-
Type:
System.String
The format of the message.
- messageArguments
-
Type:
System.Object[]
The message argument.

