Serilog is a rich and deep logging package. Its capabilities are well beyond what .NET's basic
ILogger offers. However, with its power comes lots of knobs and switches.
This article provides the minimal amount of code need to log to a text file with Serilog. This example is essentially doing the same thing that the basic
ILogger features do. However, with Serilog in place, you can then fiddle with Serilog's knobs and switches to put its more sophisticated features to work.
Step 1. Install Nuget packages: