HSE_APPEND_LOG_PARAMETER

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

);

 

Parameters
ConnID
Specifies the connection identifier of the client to which the response data should be sent.
lpvBuffer
Points to a null-terminated string that should be appended to the log record.
lpdwSizeofBuffer
Points to the DWORD containing the size of the string contained in the buffer lpvBuffer.
lpdwDataType
Unused in this ServerSupportFunction request type.
Remarks

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.