ASP.NET Core MVC and `UseSerilogRequestLogging()`

added by DotNetKicks
10/17/2019 10:19:22 PM

335 Views

TL;DR: Use action filters and IDiagnostiContext to selectively add MVC handler information to your app's request completion events. This post is a follow-up from yesterday's post about Serilog integration into ASP.NET Core 3 logging. It introduced the new UseSerilogRequestLogging() middleware, which condenses the important information about requests handled by ASP.NET Core into one clean, streamlined, request completion event.


0 comments