In a previous article I wrote about using middleware to add concurrency keys into an Asp.Net Core project. I'd like to extend that and show how to integrate a logging platform with concurrency keys. Our .Net Core logging framework of choice is Serilog. They have great integration with common logging protocols, and there stuff is very extensible.
Logging with Serilog Serilog allows a developer to inject properties into the LogContext. The LogContext This allows us to take properties and map them to the log templates.