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
<PackageReference Include="Elmah.AspNetCore.MsSql" Version="1.0.1" />
paket add Elmah.AspNetCore.MsSql --version 1.0.1
#r "nuget: Elmah.AspNetCore.MsSql, 1.0.1"
// 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 requestSupports .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 | Versions 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. |
-
net6.0
- Elmah.AspNetCore.Common (>= 1.0.1)
- Microsoft.Data.SqlClient (>= 5.1.5)
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 | 254 | 2/4/2024 |
1.0.0 | 110 | 1/27/2024 |
0.0.0-preview.0.168 | 90 | 1/3/2024 |
0.0.0-preview.0.162 | 61 | 1/2/2024 |
0.0.0-preview.0.139 | 54 | 1/25/2024 |