Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

skbkontur/serilog-enrichers-exceptiondata

Repository files navigation

Serilog.Enrichers.ExceptionData

ExceptionDataEnricher

Enriches Serilog events with collection of key/value pairs from exception's Data property.

To use the enricher, first install the NuGet package:

Install-Package Serilog.Enrichers.ExceptionData

Then, apply the enricher to you LoggerConfiguration:

Log.Logger = new LoggerConfiguration()
    .Enrich.WithExceptionData()
    // ...other configuration...
    .CreateLogger();

The WithExceptionData() enricher will add a properties from exception's Data property to produced events.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published