Name: serilog-enrichers-exceptionstacktracehash
Owner: Kontur
Description: null
Created: 2017-01-19 12:50:47.0
Updated: 2017-05-12 14:08:45.0
Pushed: 2018-01-23 12:45:51.0
Homepage: null
Size: 23
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Enriches Serilog events with hash from exception's stack trace.
To use the enricher, first install the NuGet package:
all-Package Serilog.Enrichers.ExceptionStackTraceHash
Then, apply the enricher to you LoggerConfiguration
:
Logger = new LoggerConfiguration()
.Enrich.WithExceptionStackTraceHash()
// ...other configuration...
.CreateLogger();
The WithExceptionStackTraceHash()
enricher will add a ExceptionStackTraceHash
property to produced events.