IInetLogInformation Interface

The IInetLogInformation COM interface is implemented and exposed by IIS. This interface can be used by your custom logging module to retrieve specific types of information about the current logging event.

The following methods are exposed by IIS.

Method Description
IInetLogInformation::GetBytesRecvd Returns the number of bytes received from the client
IInetLogInformation::GetBytesSent Returns the number of bytes sent by the client
IInetLogInformation::GetClientHostName Returns the IP address of the client
IInetLogInformation::GetClientUserName Returns the user name of the client
IInetLogInformation::GetComputerName Returns the local computer to which the logging module is applied
IInetLogInformation::GetExtraHTTPHeaders Returns a null-delimited list of parameters requested by the logging module from the Web server
IInetLogInformation::GetOperation Retrieves the function to be called
IInetLogInformation::GetParameters Retrieves the parameters related to the current operation
IInetLogInformation::GetPortNumber Retrieves the number of the port the client is connected to
IInetLogInformation::GetProtocolStatus Retrieves the protocol dependent status code returned to the client
IInetLogInformation::GetServerAddress Obtains the IP address of the server that is having its activity recorded by the logging module
IInetLogInformation::GetSiteName Obtains the name of the server instance that is being logged
IInetLogInformation::GetTarget Obtains the target for the current operation
IInetLogInformation::GetTimeForProcessing Retrieves the number of milliseconds it took for the operation to complete
IInetLogInformation::GetVersionString Retrieves the version of the HTTP protocol used for the request
IInetLogInformation::GetWin32Status Retrieves the Win32 status code of the request

All interface, function, and data structure definitions are provided in the header file ilogobj.h and logtype.h. Both header files must be included.