In this video, we learn how to log information, error into the MS SQL database with userName using the Serilog library.
1. I will show you how to configure serilog and add custom columns into Log table.
2. Configure Serilog in Web API Project
3. Create Log Table in MS SQL Database
4. Add Custom Columns in Log Table
 

Logging into MS SQL Database using Serilog - ASP.NET Core 3.1 Web API
Oct 17 2020

Jigar Patel

In this video we learn how to log information, error into MS Sql database with userName using Serilog library.