Install Serilog.AspNetCore
devTo use Serilog in your ASP.NET Core application, install the Serilog.AspNetCore NuGet package. Ensure you choose a version that matches your application's target framework (e.g., use an 8.x version for .NET 8.x).
dotnet add package Serilog.AspNetCore