Setting up Serilog in ASP.NET Core 3

added by DotNetKicks
10/17/2019 1:09:22 AM


TL; DR: I've put down everything I can think of about getting set up for successful production diagnostics using Serilog and ASP.NET Core. Out of the box, ASP.NET Core 3 comes with reasonable defaults for diagnostic logging: the framework and applications have access to good APIs for structured logging, and log events are written out to useful providers including the terminal and Microsoft's Application Insights offering.