rebus-org / Rebus.ServiceProvider

:bus: Microsoft Extensions Dependency Injection container adapter for Rebus
https://mookid.dk/category/rebus
Other
65 stars 32 forks source link

Use Microsoft.Extensions.Logging.ILogger with rebus #24

Closed CzechsMix closed 4 years ago

CzechsMix commented 4 years ago

Is there currently a way to use ILogger with Rebus so that whatever logger I've configured for the rest of my app will be used by Rebus?

If there is not, would this be the correct repo to add such a feature?

CzechsMix commented 4 years ago

You can ignore the first question, I have a way to do it.

Just wondering if this is the right repo to add it.

mookid8000 commented 4 years ago

You can use the Rebus.Microsoft.Extensions.Logging NuGet package.

Check the repository for an example on how to enable it: https://github.com/rebus-org/Rebus.Microsoft.Extensions.Logging