SystemDiagnosticsTraceWriter::Trace Method

Writes a trace to Trace if the level is greater than or equal MinimumLevel.

Namespace:  System.Web.Http.Tracing
Assembly:  System.Web.Http.Tracing (in System.Web.Http.Tracing.dll)

public:
virtual void Trace(
	HttpRequestMessage^ request, 
	String^ category, 
	TraceLevel level, 
	Action<TraceRecord^>^ traceAction
)

Parameters

request
Type: HttpRequestMessage
The HttpRequestMessage associated with this trace. It may be null but the resulting trace will contain no correlation ID.
category
Type: System::String
The category for the trace. This can be any user-defined value. It is not interpreted by this implementation but is written to the trace.
level
Type: System.Web.Http.Tracing::TraceLevel
The TraceLevel of this trace. If it is less than MinimumLevel, this trace request will be ignored.
traceAction
Type: System::Action<TraceRecord>
The user callback to invoke to fill in a TraceRecord with additional information to add to the trace.

Implements

ITraceWriter::Trace(HttpRequestMessage, String, TraceLevel, Action<TraceRecord>)
Show: