Enriches Serilog events with hash from exception's stack trace.
To use the enricher, first install the NuGet package:
Install-Package Serilog.Enrichers.ExceptionStackTraceHash
Then, apply the enricher to you LoggerConfiguration
:
Log.Logger = new LoggerConfiguration()
.Enrich.WithExceptionStackTraceHash()
// ...other configuration...
.CreateLogger();
The WithExceptionStackTraceHash()
enricher will add a ExceptionStackTraceHash
property to produced events.