共用方式為


IResponse::AppendToLog

The IResponse::AppendToLog method adds a string to the end of the Web server log entry for the current request. The log entry can contain a maximum of 80 bytes. For more information, see the Response.AppendToLog method of the Response object.

HRESULT AppendToLog(
      BSTR bstrLogEntry
);

Parameters

  • bstrLogEntry
    [in] A binary string to append to the log entry.

Remarks

This method adds a string to the end of the Web server log entry for this request. You can call it multiple times in one section of script. Each time the method is called it appends the specified string to the existing entry.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also