MrMistreater

Implementing ELMAH in an MVC3 Project

Jun 16th, 2012
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.61 KB | None | 0 0
  1. From StackOverFlow.com (http://stackoverflow.com/questions/6491273/elmah-and-asp-net-mvc-3)
  2.  
  3. 1.Nuget Elmah.mvc
  4. 2.URL is http://yourapp/admin/elmah
  5. 3.https://github.com/alexanderbeletsky/elmah.mvc.controller#readme
  6. 4.http://www.beletsky.net/2011/03/integrating-elmah-to-aspnet-mvc-in.html
  7. 5.https://github.com/alexanderbeletsky/elmah.mvc.controller
  8.  
  9. *It turned out step 1 and 2 can be combined by nuget-ing "elmah on xml log", which will set up web.config so elmah will log errors into separate xml files. So no need to edit the config by hand at all, except to further customize elmah.
  10.  
  11. Step 3 is still necessary.
Advertisement
Add Comment
Please, Sign In to add comment