How to use Microsoft.Extensions.LoggingLogger in a scoped service

前端 未结 0 1649
-上瘾入骨i
-上瘾入骨i 2021-01-28 17:59

In a .Net 5 Web API, I\'m trying to do logging in a scoped service.

I first tried to introduce the logger service via constructor dependency injection:

usi         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题