skbkontur/serilog-enrichers-exceptionstacktracehash

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Serilog.Enrichers.ExceptionStackTraceHash

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.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.