I need to log the request post payload for requests made to IIS. Is this possible to configure the logging of request post payloads with the existing logging and advanced logging modules within IIS 7.5 or can anybody direct me to any custom modules that will allow me to log the post payload.
相关问题
- I want to trace logs using a Macro multi parameter
- Error message 'No handlers could be found for
- convert logback.xml to log4j.properties
- Django management command doesn't show logging
- apache modules ap_log_perror is at a different lev
相关文章
- how do I log requests and responses for debugging
- XCopy or MOVE do not work when a WCF Service runs
- Android Studio doesn't display logs by package
- The 'DbProviderFactories' section can only
- Stacktrace does not print in Glassfish 4.1 Cluster
- Out of curiosity — why don't logging APIs impl
- Laravel log file based on date
- Java -How to get logger to work in shutdown hook?
I managed to create a text file for my requests that contained the entire request (headers and response), I only used it to log specific post requests:
Hopefully this helps you!
It can actually be done, according to https://serverfault.com/a/90965
Here is code of custom HTTP module we use to log HTTP POST request data.
Do not forget to register it in web.config of you application.
Use system.WebServer section for IIS Integrated Model
Use system.web section for IIS Classic Model
IIS log Before applying module:
IIS log After applying module:
Full article:
https://www.codeproject.com/Tips/1213108/HttpModule-for-logging-HTTP-POST-data-in-IIS-Log