From the course: ASP.NET MVC: Building for Productivity and Maintainability
Unlock the full course today
Join today to access over 22,400 courses taught by industry experts or purchase this course individually.
Better error logging with ELMAH
From the course: ASP.NET MVC: Building for Productivity and Maintainability
Better error logging with ELMAH
- [Instructor] I've designed this course to show you how to make what I consider, to be the cleanest and most maintainable ASP.NET MVC application possible. And for the most part, I'll do that all using features that come right in the framework without adding additional dependencies on third-party libraries, however in this video I'm going to break that rule just a little because I'm gonna show you how to begin using the ELMAH error logging framework, a simple yet powerful framework that allows you to quickly and easily add exception logging to your application. To begin taking advantage of the framework, simply add its NuGet package to the application by right clicking on the project and selecting manage NuGet packages. Switch to the browse tab and then search for ELMAH.MVC. That's E-L-M-A-H.MVC then select the first result that comes up, the one my Atif Aziz, and click install to add it to your project. And that's all you need to do. Just by adding this package, ELMAH has not only…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
Enabling view compilation to detect errors at build time3m 15s
-
Reducing namespace references with global imports1m 58s
-
Customizing routes with attribute routing5m 10s
-
Reusing the same view for server-side and client-side rendering4m 48s
-
Better error logging with ELMAH5m 47s
-
Managing dependencies with dependency injection5m 53s
-
-
-
-
-
-
-