CarterCommunity / Carter

Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and most importantly more enjoyable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How-to inject ILogger using Serilog?

kiquenet opened this issue · comments

Not ILogger appear in Program.cs

(ILogger<IProductsRepository> logger)

Sample Serilog NET 6 minimal API: https://www.anmalkov.com/blog/use-serilog-with-minimal-api-or-aspnet-6

The sample you've linked will work with Carter without any issues