Important note: This package is no longer being actively developed, as the improved stack trace functionality is now a part of .NET Core, and thus the future utility of this integration package is limited. If you'd like to take over development, please feel free to fork, or contact @nblumhardt.
Unmangle the names of async
and iterator methods in exception stack traces using @benaadams's Demystifier.
Install from NuGet:
Install-Package Serilog.Enrichers.Demystify -Pre -DependencyVersion Highest
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.