elmah / Elmah

Error Logging Modules & Handlers for ASP.NET
https://elmah.github.io/
Apache License 2.0
310 stars 63 forks source link

Include Error.Hostname in ErrorMailHtmlPage.cshtml #301

Open atifaziz opened 9 years ago

atifaziz commented 9 years ago

Originally reported on Google Code with ID 301

What new or enhanced feature are you proposing?

Include the actual host on which the error occurred in the error email.
This would be the Error.Hostname (as logged to SQL, etc), which can differ from the
values reported in server variables.

What goal would this enhancement help you achieve?

In a web-farm application, ease the diagnosis of what server had the error. Currently
this is possible via looking up the logged data in SQL (The error/host element), or
by looking up the LOCAL_ADDR server variable reported in the email.
Both of which take longer than if it was included in the email.

What do you think?

Reported by laazyj on 2012-07-19 16:25:25

atifaziz commented 9 years ago

Reported by azizatif on 2012-07-25 06:20:41