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
Join my mailing list: https://signup.codewithjulian.com
Checkout my website: https://codewithjulian.com
Here are the dependencies for this project:
Serilog for AspNet core: https://www.nuget.org/packages/Serilo...
Entity Framework Core for Sql Server: https://www.nuget.org/packages/Micros...
Entity Framework Core Tools: https://www.nuget.org/packages/Micros...
Credits:
Icons designed by http://www.freepik.com and https://www.flaticon.com/
Images from the artists on https://unsplash.com/
Смотрите видео Serilog Tutorial - Starting out with Serilog in ASP.NET Core (Blazor app) онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Code with Julian 01 Январь 1970, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 4,287 раз и оно понравилось 81 людям.