https://github.com/rebus-org/rebus.nlog
:bus: NLog logger integration for Rebus
https://github.com/rebus-org/rebus.nlog
nlog nlog-logger rebus
Last synced: 27 days ago
JSON representation
:bus: NLog logger integration for Rebus
- Host: GitHub
- URL: https://github.com/rebus-org/rebus.nlog
- Owner: rebus-org
- License: other
- Created: 2016-08-31T09:01:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-15T11:40:52.000Z (over 1 year ago)
- Last Synced: 2025-04-02T20:11:48.518Z (about 2 months ago)
- Topics: nlog, nlog-logger, rebus
- Language: C#
- Homepage: https://mookid.dk/category/rebus
- Size: 2.94 MB
- Stars: 4
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Rebus.NLog
[](https://www.nuget.org/packages/Rebus.NLog)
Provides an NLog logger integration for [Rebus](https://github.com/rebus-org/Rebus).

## How to use it
When you configure Rebus by calling the ordinary configuration spell
```csharp
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:
```csharp
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](http://nlog-project.org/) for details on how to configure NLog.
---