Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Custom Logging Module for IIS

I have an application which exposes its COM method as

Sub InsertLog(ByVal time As Date, ByVal siteName As String, ByVal requestPath As String, ByVal remoteHost As String, ByVal referrer As String, ByVal outBytes As Long Long, ByVal inBytes As Long Long)

I tried the using the ILogPlugin to make a custom logging module which will transfer data to this method. However I was not able to recieve any event on my IIS 7.5.

I have to implement this module for IIS 6 and later, and this has to support logging for FTP and HTTP(S). I know about Global-Level HTTP Module but I really doubt its working on IIS6 and for FTP. Also I dont know how to retrieve the logging informations from these HTTP modules.

Request you to please provide any link or even a smaller guidance to achieve the objective. I have to program it in C++.

Thanks for your support....

like image 256
user1655481 Avatar asked Mar 11 '26 08:03

user1655481


1 Answers

Iis 7.5 must be configured with the custom logging module or your com object that implements ilogplugin will not be called

See the following for more info

http://www.iis.net/learn/get-started/introduction-to-iis/iis-modules-overview

And

http://support.microsoft.com/kb/259552

The recommended method for iis 7.5 is described here http://msdn.microsoft.com/en-us/library/ms689225(v=vs.90).aspx

like image 133
Mike Beeler Avatar answered Mar 12 '26 21:03

Mike Beeler



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!