Partager via


ILogPluginEx::LogCustomInformation

This method allows IIS to log user-defined data to the IIS log. If your custom logging module supports the ILogPluginEx interface, IIS will call ILogPluginEx::LogCustomInformation for certain types of logging events.

HRESULT STDMETHODCALLTYPE LogCustomInformation(
   DWORD cCount,
   PCUSTOM_LOG_DATA pCustomLogData,
   LPSTR szHeaderSuffix
);

Parameters

  • cCount
    [in] Number of custom log fields that are being submitted to IIS for logging.

  • pCustomLogData
    [in] Points to an array of CUSTOM_LOG_DATA Structure structures, which contain information about the custom log fields to be logged.

  • szHeaderSuffix
    [in] Points to a string that should contain the headers that IIS will write to the log file.

Remarks

This method can also be used by your own applications, an alternative to the ILogPlugin Interface interface.

Note

IIS 5.1 only calls the ILogPluginEx interface to log CPU accounting and throttling information. IIS uses ILogPlugin::LogInformation for all other loggable events, regardless of whether the active logging module is custom or not.

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

Concepts

CUSTOM_LOG_DATA Structure