All coders are quite familiar with error messages. They are quite handy when developing stuff but you dont want them around after the release of your system and the users dont really think they are too funny.
So, how can we get rid of these ugly messages and still get nice information when your functions break down? I have written some code (with some inspiration from other error logging examples) that provide your system with some nice features:
- On error, it redirects the user to a page that in English explains that an error has occurred.
- You can set the object to either send an email or write in the EventLog, or both.
- All the browser information is included in the email for support help.
- It can also present an Alert message to the user
http://www.c-sharpcorner.com/UploadFile/pohlrobert/ErrorLoggingInASPNet11142005060841AM/ErrorLoggingInASPNet.aspx
No comments:
Post a Comment