Serilog.Sinks.Elmah.AspNetCore 1.0.2

dotnet add package Serilog.Sinks.Elmah.AspNetCore --version 1.0.2                
NuGet\Install-Package Serilog.Sinks.Elmah.AspNetCore -Version 1.0.2                
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="Serilog.Sinks.Elmah.AspNetCore" Version="1.0.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Serilog.Sinks.Elmah.AspNetCore --version 1.0.2                
#r "nuget: Serilog.Sinks.Elmah.AspNetCore, 1.0.2"                
#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 Serilog.Sinks.Elmah.AspNetCore as a Cake Addin
#addin nuget:?package=Serilog.Sinks.Elmah.AspNetCore&version=1.0.2

// Install Serilog.Sinks.Elmah.AspNetCore as a Cake Tool
#tool nuget:?package=Serilog.Sinks.Elmah.AspNetCore&version=1.0.2                

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+

Serilog support

If you use Serilog for logs and would like these logs to be included as context when Elmah captures errors, the Serilog.Sinks.Elmah.AspNetCore package can be used can be used. This will add a ILogEventSink to DI which will be picked up by Serilog when the option to read configuration from services is used.

using Elmah.AspNetCore;

builder.Host.UseElmah((builderContext, elmah) =>
{
    elmah.CaptureSerilogMessages();
});
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.2 223 2/14/2024
1.0.1 173 2/4/2024
1.0.0 122 1/27/2024
0.0.0-preview.0.139 58 1/25/2024