Skip to content

About

Shows async DB logging with NLog and SQL Server in ASP.NET MVC with error handling and reporting.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Demonstrates an example of async DB logging with NLog and SQL Server in an ASP.NET MVC project.
Also demonstrates error handling and reporting without using third party libraries like ELMAH.

See:
http://www.geoffhudik.com/tech/2013/5/20/aspnet-nlog-sql-server-logging-and-error-handling-part-1.html
http://www.geoffhudik.com/tech/2013/5/24/aspnet-nlog-sql-server-logging-and-error-handling-part-2.html

Logging

See Infrastructure\Diagnostics\ for logging and diagnostic info gathering classes.
See configuration/nlog section of web.config for log configruation as well as transforms.
See DB folder for SQL Server DB scripts.
See usages in HomeController, ErrorController, ActionTrackerAttribute and other locations.
Generate batch log statements from home page.

Error Handling

See Infrastructure\ErrorHandling, Global.asax.cs, ErrorController, Views\Shared\Error.cshtml
See configuration\emailSettings in web.config for error report email settings
Generate test errors and responses from home page

About

Shows async DB logging with NLog and SQL Server in ASP.NET MVC with error handling and reporting.

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages