How to create Log for each request when IIS first time hit by request RRS feed

  • Question

  • User-1610695295 posted

    How can I create Log file for a specific web application for below condition:

    1. Log for each request when it hits the IIS (time when request come).
    2. Log for each response when it goes out from the IIS (time when response goes)

    Need to develop custom module which makes Log file for each request when it hits first time IIS, so each request first hit my custom module then enters into IIS for further processing. After processing the request again it goes out from my custom log.

    Tuesday, December 16, 2014 12:57 AM

All replies

  • User212506688 posted


    You might have a performance issue if you write to a log at the beginning and end of each request.

    Why can't you use the IIS logs request date time stamp and the time-taken to calculate the same?

    HTH, Benjamin

    Wednesday, January 21, 2015 9:34 AM