Elmah.AspNetCore.MsSql 1.0.1

dotnet add package Elmah.AspNetCore.MsSql --version 1.0.1                
NuGet\Install-Package Elmah.AspNetCore.MsSql -Version 1.0.1                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Elmah.AspNetCore.MsSql" Version="1.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Elmah.AspNetCore.MsSql --version 1.0.1                
#r "nuget: Elmah.AspNetCore.MsSql, 1.0.1"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Elmah.AspNetCore.MsSql as a Cake Addin
#addin nuget:?package=Elmah.AspNetCore.MsSql&version=1.0.1

// Install Elmah.AspNetCore.MsSql as a Cake Tool
#tool nuget:?package=Elmah.AspNetCore.MsSql&version=1.0.1                

Elmah.AspNetCore

ELMAH (Error Logging Middleware and Handlers) for ASP.NET Core.

Features include:

  • Logging of unhandled exceptions

  • Friendly UI to view captured errors along with contextual information

  • Hooks to include handled exceptions and additional contextual information

  • Various methods to persist error logs

  • Supports securing UI via built-in ASP.Net Core functionality

  • Notifications of errors through email or custom notifiers

  • Integration with Microsoft.Extensions.Logging to capture logs made during a request

  • Supports .NET 6+

  • SqlErrorLog - store errors in MS SQL (add reference to Elmah.AspNetCore.MsSql and use PersistToSql method)

  • MysqlErrorLog - store errors in MySQL (add reference to Elmah.AspNetCore.MySql and use PersistToMySql method)

  • PgsqlErrorLog - store errors in PostgreSQL (add reference to Elmah.AspNetCore.PostgreSql and use PersistToPgsql method)

using Elmah.AspNetCore;

builder.Host.UseElmah((builderContext, elmah) =>
{
    elmah.PersistToSql(options =>
    {
        options.ConnectionString = "connection_string";
        options.SqlServerDatabaseSchemaName = "Errors"; //Defaults to dbo if not set
        options.SqlServerDatabaseTableName = "ElmahError"; //Defaults to ELMAH_Error if not set
    });
});
Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 253 2/4/2024
1.0.0 109 1/27/2024
0.0.0-preview.0.168 87 1/3/2024
0.0.0-preview.0.162 60 1/2/2024
0.0.0-preview.0.139 53 1/25/2024