Sample: IIS Logging Module

This article was previously published under Q259552
This article has been archived. It is offered "as is" and will no longer be updated.
LogMod.exe is a sample that demonstrates how to a write a custom logging module for Internet Information Services (IIS).
The following file is available for download from the Microsoft Download Center:

DownloadDownload the LogMod.exe package now.

For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:
119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help to prevent any unauthorized changes to the file.

LogMod.exe includes a Microsoft Visual C++ 6.0 workspace for a custom logging module. A custom logging module is server that is based on Microsoft Component Object Model (COM). The COM-based server is loaded by Internet Information Services (IIS) to perform a custom logging task. On computers that are running IIS 6.0, you must implement ILogUIPlugin2. For more information, download the sample from the following Microsoft Web site:

LogMod.exe implements the ILogPlugin and the ILogUIPlugin interfaces. The custom logging module outputs debug messages when it receives IIS notification.

To install this sample, follow these steps:
  1. Register SampLogPlugin.dll as a COM object on the computer that is running IIS.
  2. Run LogMod.vbs to register the logging module with IIS.
  3. Start Dbmon.exe to see the debug output.
  4. In Microsoft Management Console (MMC), click My New Logging Module in the Active log format list.

Article ID: 259552 - Last Review: 02/28/2014 00:32:10 - Revision: 2.3

  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Services 5.0
  • Microsoft Internet Information Services 6.0
  • kbnosurvey kbarchive kbdownload kbsample kbhowto kbfile KB259552