Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 677 Bytes

File metadata and controls

20 lines (13 loc) · 677 Bytes

Exceptional.Core

Lite implementation of MS SQL Exception logger for ASP.Net Core (based on StackExchange.Exceptional)

To implement add the following in Startup.cs:

 Exceptional.Core.ErrorStore.Setup(new SQLErrorStore("applicationname","your connection string here"));

 var globalExceptionFilter = new GlobalExceptionFilter {RollupPerServer = false};

 services.AddMvc(config =>
 {
     config.Filters.Add(globalExceptionFilter);
 });

Please note this is highly experimental and lacking a lot of features. Just a quick hack to get basic exception logging working!

Original Exception logger source: https://github.com/NickCraver/StackExchange.Exceptional