Writes a message to the IIS trace log.
A message to log.
A second message to log.
The HRESULT to log. The default is S_OK.
The trace level. The possible values are 1 through 7. The default is 4 (TRACE_LEVEL_INFORMATION). For more information, see the Remarks section.
An HRESULT. Possible values include, but are not limited to, those in the following table.
Indicates that the operation was successful.
Event trace levels 1 through 5 correspond to Event Tracing for Windows (ETW) trace levels. For more information about these trace levels, see the EVENT_TRACE_HEADER structure. You can also use trace level 6 (defined as HTTP_TRACE_LEVEL_START in the Httptrace.h header file) and trace level 7 (defined as HTTP_TRACE_LEVEL_END in Httptrace.h).
The following example demonstrates how to use the IHttpRequest::SetUrl method to change a requested URL to another URL and log the change with the QuickTrace method.
You must enable Failed Event Request tracing to see the event.