次の方法で共有


ILogPlugin::QueryExtraLoggingFields

The ILogPlugin::QueryExtraLoggingFields method determines logging information that is specific to a custom logging module.

virtual HRESULT STDMETHODCALLTYPE QueryExtraLoggingFields(
   PDWORD cbSize,
   PCHAR szParameters
);

Parameters

  • cbSize
    The size of the szParameters parameter.

  • szParameters
    Null-delimited strings that list the extra fields to be logged.

Remarks

You can use this method to record data sent by custom headers from the client. For example, to capture a client's user agent string and HTTP cookie, the szParameters parameter would contain the following:

User-Agent:\0Cookie:\0\0 

You could then use the IInetLogInformation::GetExtraHTTPHeaders method to retrieve a list of header information. This list would be null-delimited.

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

Header: Declared in ilogobj.hxx.

See Also