Serilog Tutorial - Starting out with Serilog in ASP.NET Core (Blazor app)

preview_player
Показать описание
This is a tutorial for setting up and using Serilog in an ASP.NET Core web application, specifically a Blazor Server web app. By the end of this tutorial you will know how to use Serilog to write logs to Console, File and to a Microsoft SQL Server Database (using Entity Framework Core).

Here are the steps in this tutorial:
1. Create a Blazor Server App
2. Install the Packages Required
3. Setup Serilog for Console
4. Setup File Logging with Serilog
5. Setup the Sql Server Database (using EF Core)
6. Setup MSSqlServer Serilog Sink

Here are the dependencies for this project:

Credits:
Рекомендации по теме
Комментарии
Автор

Awesome!
I would like to add additional columns, such as 'Test1' and 'Test2, ' to a SQL Server database. I also aim to insert data into these columns using a Logger. Could you please suggest a way for me to achieve this?

LizaHossain-xoiy
welcome to shbcf.ru