The problem I recently was working on a codebase that was using .NET 4.7.2, where we began porting a portion of the codebase that was sitting in MVC controllers to API controllers. A part of the code that we were porting included rendering razor views. Since the code I mentioned was sitting in MVC views, […]
What is a Serilog enricher and what is it used for? A Serilog enricher gives us the ability to dynamically add useful, contextual properties to our logs. It is one of those things that makes Serilog more than just a logging API. A number of pre-built enrichers can be found on the Github page of Serilog. However, […]