Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
83いいね 4330回再生

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

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: signup.codewithjulian.com/
Checkout my website: codewithjulian.com/

Here are the dependencies for this project:
Serilog for AspNet core: www.nuget.org/packages/Serilog.AspNetCore/4.1.0
Entity Framework Core for Sql Server: www.nuget.org/packages/Microsoft.EntityFrameworkCo…
Entity Framework Core Tools: www.nuget.org/packages/Microsoft.EntityFrameworkCo…

Credits:
Icons designed by www.freepik.com/ and www.flaticon.com/
Images from the artists on unsplash.com/

コメント