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

Published: 01 January 1970
on channel: Code with Julian
4,287
81

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/


Watch video Serilog Tutorial - Starting out with Serilog in ASP.NET Core (Blazor app) online without registration, duration hours minute second in high quality. This video was added by user Code with Julian 01 January 1970, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,287 once and liked it 81 people.