rebus-org / Rebus.NLog

:bus: NLog logger integration for Rebus

Home Page:https://mookid.dk/category/rebus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rebus.NLog

install from nuget

Provides an NLog logger integration for Rebus.

How to use it

When you configure Rebus by calling the ordinary configuration spell

Configure.With(yourFavoriteContainerAdapter)
	.Transport(t => t.UseYourFavoriteTransport("with-this-queue"))
	.Start();

Rebus will default to log things to the console, using colors to differentiate between the four different log levels used.

You can make Rebus use NLog like this:

Configure.With(yourFavoriteContainerAdapter)
	.Logging(l => l.NLog())
	.Transport(t => t.UseYourFavoriteTransport("with-this-queue"))
	.Start();

and that's basically it :)

Please check out the NLog site for details on how to configure NLog.


About

:bus: NLog logger integration for Rebus

https://mookid.dk/category/rebus

License:Other


Languages

Language:C# 78.1%Language:Batchfile 21.9%