Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ITraceWriterExtensions.Trace Method

 

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.

Return to top

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.

Return to top

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.

Return to top
Show: