Skip to main content
.NETStandard2.0

Unmangle async/iterator/generic stack traces in Serilog events

Published
Oct 30, 2024
2y ago
Total Downloads
8.3M
8,278,781

Install

dotnet add package Serilog.Enrichers.Demystifier --version 1.0.3
ProductVersions
.NET Standard
netstandard2.0

README

Serilog.Enrichers.Demystifier NuGet Pre Release

Unmangle the names of async and iterator methods in exception stack traces using @benaadams's Demystifier.

Getting started

Install from NuGet:

Install-Package Serilog.Enrichers.Demystifier

Configure log event enrichment:

Log.Logger = new LoggerConfiguration()
    .Enrich.WithDemystifiedStackTraces() // <- Add this line
    .WriteTo.Console()
    .CreateLogger();

The enricher will replace logged exception stack traces with unmangled ones.

Changes from Previous Version

v1.0.2v1.0.3
Removed Frameworks
.NETFramework4.5net5.0net6.0
Removed Dependencies
Ben.Demystifier(.NETFramework4.5)
Serilog(.NETFramework4.5)
Serilog(net5.0)
Serilog(net6.0)

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.