Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ELMAH : Include POST request parameters in error report

Tags:

http

post

elmah

I want POST parameters passed in the request to be included in the error report.

like image 848
THX-1138 Avatar asked Feb 14 '10 19:02

THX-1138


2 Answers

Turned out that form parameters are available in the XML report, and not shown in the detailed view to avoid cluttering the page.

like image 106
THX-1138 Avatar answered Oct 13 '22 22:10

THX-1138


Here is how I got the XML report.

Open Elmah (e.g. http://myapp.com/elmah.axd)

Click on Download Log (on the gray menu at the top of the page). The browser will prompt you the save a CSV file.

Open the CSV file in Excel.

Look for the column XMLREF

Use the URL to get the XML report for the page you are interested in.

like image 25
Dror Avatar answered Oct 13 '22 23:10

Dror