If you’re running your Rebus stuff on .NET Core, and you’re using “Microsoft Extensions Logging” (that’s just not a bite-sized title for a logging library), you’re in luck: Rebus now has Rebus.Microsoft.Extensions.Logging, so you can
var loggerFactory = new LoggerFactory() .AddYourSinksHere(); Configure.With(...) .Logging(l => l.MicrosoftExtensionsLogging(loggerFactory)) .Transport(t => t.Use(...)) .(...) .Start();
and have Rebus log its stuff there, too.
The package is currently in alpha, but since there’s not much to it, we expect it to be pretty stable.
Happy logging! 🤠
About the author