Rebus.Serilog 7.0.0

.NET Standard 2.0
Install-Package Rebus.Serilog -Version 7.0.0
dotnet add package Rebus.Serilog --version 7.0.0
<PackageReference Include="Rebus.Serilog" Version="7.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Rebus.Serilog --version 7.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Rebus.Serilog, 7.0.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Rebus.Serilog as a Cake Addin
#addin nuget:?package=Rebus.Serilog&version=7.0.0

// Install Rebus.Serilog as a Cake Tool
#tool nuget:?package=Rebus.Serilog&version=7.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Rebus.Serilog

install from nuget

Provides a Serilog logging integration for Rebus.


Do it like this if you just want Rebus to use your global Serilog logger directly:

Configure.With(...)
	.Logging(l => l.Serilog())
	.Transport(t => t.Use(...))
	.(...)
	.Start();

or like this if you want to customize it:

var logger = Log.ForContext("queue", queueName);

Configure.With(...)
	.Logging(l => l.Serilog(logger))
	.Transport(t => t.Use(..., queueName))
	.(...)
	.Start();

Initialize your Serilog logging with Rebus' correlation ID enricher if you'd like the correlation ID of handled messages to be added automatically to all log output generated from message handlers:

Log.Logger = new LoggerConfiguration()
    .WriteTo.(...)
    .Enrich.WithRebusCorrelationId("CorrelationId")
    .CreateLogger();

and then either use real structured logging (e.g. to an aggregator like Elastic), or remember to include it in your output template (here shown with ColoredConsole):

//                                                                                  👇
Log.Logger = new LoggerConfiguration()
	.WriteTo.ColoredConsole(outputTemplate: "{Timestamp:HH:mm:ss} {Level:u3} ({CorrelationId}) {Message}{NewLine}{Exception}")
	.(...)
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (7)

Showing the top 5 NuGet packages that depend on Rebus.Serilog:

Package Downloads
Fans.DependencyInjection

Package Description

Vedaantees.Framework.Providers

Providers implementation for the framework.

GAPD.Common.Event

Package Description

Bk.Rebus.EventBus

Common Rebus Configurations

PC.Logger

Package Description

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.0.0 77,278 2/1/2022
6.0.0 936,494 2/11/2020
5.0.0 388,823 10/8/2018
4.0.0 256,301 8/15/2017
4.0.0-b04 1,518 5/18/2017
4.0.0-b03 714 5/15/2017
4.0.0-b02 703 3/21/2017
4.0.0-b01 677 3/21/2017
3.0.0 18,315 1/5/2017
2.0.0 3,310 9/20/2016
2.0.0-b02 699 9/12/2016
2.0.0-b01 711 9/9/2016
2.0.0-a2 706 9/6/2016
2.0.0-a1 710 9/1/2016
0.99.74 2,250 8/29/2016
0.99.73 1,147 8/12/2016
0.99.72 871 8/4/2016
0.99.71 1,048 8/3/2016
0.99.70 936 7/29/2016
0.99.68 840 7/18/2016
0.99.67 838 7/1/2016
0.99.66 838 6/28/2016
0.99.65 766 6/23/2016
0.99.64 762 6/22/2016
0.99.63 766 6/21/2016
0.99.62 1,080 6/17/2016
0.99.61 877 6/17/2016
0.99.60 907 6/15/2016
0.99.59 1,036 6/3/2016
0.99.58 955 5/24/2016
0.99.57 860 5/22/2016
0.99.56 770 5/22/2016
0.99.55 957 5/16/2016
0.99.54 788 5/12/2016
0.99.53 768 5/12/2016
0.99.52 792 5/11/2016
0.99.51 775 5/9/2016
0.99.50 934 4/13/2016
0.99.48 839 4/6/2016
0.99.47 833 3/31/2016
0.99.46 776 3/30/2016
0.99.45 803 3/29/2016
0.99.44 803 3/26/2016
0.99.43 775 3/26/2016
0.99.42 777 3/22/2016
0.99.41 813 3/17/2016
0.99.40 807 3/15/2016
0.99.39 784 3/14/2016
0.99.38 795 3/9/2016
0.99.37 762 3/9/2016
0.99.36 827 3/3/2016
0.99.35 927 2/22/2016
0.99.34 810 2/19/2016
0.99.33 951 2/12/2016
0.99.32 805 2/10/2016
0.99.31 842 2/8/2016
0.99.30 795 2/5/2016
0.99.29 1,398 2/2/2016
0.99.27 789 1/28/2016
0.99.26 766 1/27/2016
0.99.25 802 1/22/2016
0.99.24 824 1/18/2016
0.99.23 860 12/18/2015
0.99.22 772 12/18/2015
0.99.21 880 12/11/2015
0.99.20 872 12/10/2015
0.99.19 799 12/8/2015
0.99.18 777 12/7/2015
0.99.17 775 12/7/2015
0.99.16 1,123 11/30/2015
0.99.14 978 11/24/2015
0.99.13 863 11/23/2015
0.99.12 868 11/17/2015
0.99.11 847 11/17/2015
0.99.10 874 11/11/2015
0.99.9 825 11/5/2015
0.99.8 815 11/5/2015
0.99.7 813 10/29/2015
0.99.5 807 10/27/2015
0.99.4 784 10/27/2015
0.99.2 814 10/12/2015
0.99.1 1,024 10/8/2015
0.99.0 965 10/7/2015
0.98.12 876 9/17/2015
0.98.11 830 9/17/2015
0.98.10 860 9/16/2015
0.98.9 855 9/14/2015
0.98.8 852 9/13/2015
0.98.7 857 9/9/2015
0.98.6 818 9/7/2015
0.98.5 825 9/3/2015
0.98.4 812 9/3/2015
0.98.3 837 9/1/2015
0.98.2 855 8/27/2015
0.98.0 836 8/26/2015
0.97.0 841 8/25/2015
0.96.0 833 8/24/2015
0.95.0 828 8/20/2015
0.94.0 833 8/19/2015
0.93.0 821 8/19/2015
0.92.4 823 8/17/2015
0.92.3 1,112 8/13/2015
0.92.2 1,047 8/12/2015
0.92.1 1,388 8/12/2015
0.92.0 1,192 8/11/2015
0.91.0 1,117 8/11/2015
0.90.9 929 8/10/2015
0.90.8 1,005 8/9/2015
0.90.7 1,106 8/5/2015
0.90.6 1,072 8/4/2015
0.90.5 1,076 8/4/2015
0.90.4 982 8/2/2015
0.90.3 984 8/2/2015
0.90.2 957 7/31/2015
0.90.1 947 7/29/2015
0.90.0 977 7/29/2015
0.84.0 1,355 5/15/2015
0.83.0 2,150 4/20/2015
0.82.1 1,667 4/16/2015
0.82.0 931 3/19/2015
0.81.0 894 3/12/2015
0.80.1 848 3/5/2015
0.80.0 1,366 2/19/2015
0.79.0 854 2/6/2015
0.78.2 838 2/6/2015
0.78.1 839 2/5/2015
0.78.0 932 1/29/2015
0.77.1 876 1/23/2015
0.77.0 835 1/15/2015
0.76.0 805 1/15/2015
0.75.2 881 1/3/2015
0.75.1 1,158 12/21/2014
0.75.0 1,062 12/2/2014
0.74.1 984 12/2/2014
0.74.0 1,001 11/30/2014
0.73.0 1,362 11/6/2014
0.72.0 1,126 11/5/2014
0.71.4 864 10/29/2014
0.71.3 938 10/20/2014
0.71.2 830 9/30/2014
0.71.1 856 9/19/2014
0.71.0 901 8/7/2014
0.70.3 864 8/4/2014
0.70.2 890 7/31/2014
0.70.1 878 7/17/2014
0.69.0 890 6/17/2014
0.68.0 884 6/5/2014
0.67.0 874 5/20/2014
0.66.0 918 5/9/2014