You can use this support function to write your own custom log strings to the log record. When this function is called, the string contained in the buffer you specify is appended to the log record for the current HTTP request.
BOOL ServerSupportFunction(
HCONN ConnID,
DWORD HSE_APPEND_LOG_PARAMETER,
LPVOID lpvBuffer,
LPDWORD lpdwSize,
LPDWORD lpdwDataType
);
If you are using the W3C Extended Log File Format as your active log format, your log string will not be written to the %windir%\system32\logfiles\w3svc1\xxx.log file. HSE_APPEND_LOG_PARAMETER is logged in the URI Query (cs-uri-query) field, which is not enabled in the extended logging properties by default. NCSA Common Log File Format as your active log format, however, will always show the appended log string.