Skip to content

Latest commit

 

History

History
24 lines (21 loc) · 720 Bytes

README.md

File metadata and controls

24 lines (21 loc) · 720 Bytes

Serilog.Enrichers.StackCleaner Nuget

Clears up stack traces to make them much more readable using StackCleaner by DanielWillett.

Usage

From the code

Serilog.Enrichers.StackCleaner adds WithStackCleaner method to the Enrich.

Log.Logger = new LoggerConfiguration()
    .Enrich.WithStackCleaner()
    .WriteTo.Console()
    .CreateLogger();

From appSettings.json

{
  "Serilog":
  {
    "Using": [ "Serilog.Enrichers.StackCleaner" ],
    "Enrich": [ "WithStackCleaner" ]
  }
}