5

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

THX-1138
  • 21,316
  • 26
  • 96
  • 160
  • If you want JSON see http://stackoverflow.com/questions/8686466/elmah-how-to-get-json-http-request-body-from-error-report/8741276#8741276 – Rory Oct 02 '16 at 21:39

2 Answers2

6

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

THX-1138
  • 21,316
  • 26
  • 96
  • 160
  • 9
    When I view the Raw/Source data in XML I don't see post values. Where are you finding them? – ahsteele May 30 '11 at 18:51
  • 5
    Same here, cant find the post params even in the raw XML. Any clues if I need to turn on some setting or som thing else? – Vipresh Jun 05 '12 at 15:46
  • 1
    ditto, I'm storing the data in the database and not as xml files. Maybe thats the issue? – Mikeb Dec 07 '12 at 22:40
2

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.

Dror
  • 1,406
  • 12
  • 15