Logging raw and compressed HTTP responses in ASP.NET & IIS7

后端 未结 1 678
無奈伤痛
無奈伤痛 2021-01-14 07:29

Along the lines of this question I want to create a HttpModule that will do some custom logging of requests and responses for us. Using the code in the most popular answer f

相关标签:
1条回答
  • 2021-01-14 07:49

    Hi although I cannot answer your questions directly I have had cause to do similar things in the past and have found the following resource extremely helpful and enlightening. In the end I managed to acheive what I needed for raw soap headers by configuring the System.Diagnostics node within web config and create a trace log of traffic. I understand that your needs may be more granular than that however I believe this resource may still help.

    http://msdn.microsoft.com/en-us/library/ms731859

    Of particular interest may be the message log configuration and viewing message logs links from the one above.

    0 讨论(0)
提交回复
热议问题