Sample: IIS Logging Module (259552)



The information in this article applies to:

  • Microsoft Internet Information Server 4.0
  • Microsoft Internet Information Server 5.0
  • Microsoft Internet Information Services version 6.0

This article was previously published under Q259552

SUMMARY

LogMod.exe is a sample that demonstrates how to a write a custom logging module for Internet Information Services (IIS).

MORE INFORMATION

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.

Modification Type:MajorLast Reviewed:11/11/2004
Keywords:kbdownload kbSample kbhowto kbfile KB259552 kbAudDeveloper