Search code examples
http-headershttprequestelmaherror-loggingopenrasta

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


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.


Solution

  • My friend sent me this question which resolved my problem.