Enrich Serilog events with properties from the current thread.
Install the package from NuGet:
Install-Package Serilog.Enrichers.Thread
In your logger configuration, apply Enrich.WithThreadId()
:
Log.Logger = new LoggerConfiguration()
.Enrich.WithThreadId()
.CreateLogger();
To use the enricher, first install the NuGet package:
Install-Package Serilog.Enrichers.Thread
Copyright © 2016 Serilog Contributors - Provided under the Apache License, Version 2.0.