ELMAH - 如何使用错误日志记录HTTP请求正文和HTTP请求标头? [英] ELMAH - How to log HTTP request body and HTTP request header with error log?

查看:179
本文介绍了ELMAH - 如何使用错误日志记录HTTP请求正文和HTTP请求标头?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我通过特定信号错误记录错误

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.

推荐答案

我的朋友发给我这个问题解决了我的问题。

My friend sent me this question which resolved my problem.

这篇关于ELMAH - 如何使用错误日志记录HTTP请求正文和HTTP请求标头?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆