Skip to content

How to use the logging by referencing the logger provider #545

Answered by hjgraca
akhansari asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @akhansari ,

First of all, thanks for using Powertools!

It is not documented but there is a way you can use ILoggingBuilder, ServiceCollection and Dependency Injection with Powertools logger.
Have a look at this gist

Hope this helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by akhansari
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants