Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 889 Bytes

README.md

File metadata and controls

23 lines (15 loc) · 889 Bytes

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.