ELMAH - How to log HTTP request body and HTTP request header with error log?

倾然丶 夕夏残阳落幕 提交于 2019-12-10 18:35:10

问题


I'm logging errors by specifically signalling errors

ErrorSignal.FromCurrentContext().Raise(exception);

How do I add request body and headers in the errors details. I'm just using the email feature.


回答1:


My friend sent me this question which resolved my problem.



来源:https://stackoverflow.com/questions/9411306/elmah-how-to-log-http-request-body-and-http-request-header-with-error-log

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!