Support for Microsoft Extensions Logging

ByMogens

Support for Microsoft Extensions Logging

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

Mogens administrator

Author of Rebus

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.