Add support for sending NServiceBus logging message through Serilog
Already a Patron? skip past this section
It is expected that all developers become a Patron to use any of these libraries. Go to licensing FAQ
Support this project by becoming a Platinum Sponsor. A banner with your company logo will be added here with a link to your website. The banner will also be added to all GitHub repositories under the NServiceBusExtensions organization. A "Sponsored by" text and link will be added the description of the NuGet Package for the life of your sponsorship. You also get 1 hour of remote support per month.
Support this project by becoming a Gold Sponsor. A large company logo will be added here with a link to your website. The logo will also be added to all GitHub repositories under this organization.
Support this project by becoming a Silver Sponsors. A medium company logo will be added here with a link to your website. The logo will also be added to all GitHub repositories under this organization.
Support this project by becoming a Bronze Sponsors. The company avatar will show up here with a link to your website. The avatar will also be added to all GitHub repositories under this organization.
Thanks to all the backing developers! Support this project by becoming a patron.
https://nuget.org/packages/NServiceBus.Serilog/
PM> Install-Package NServiceBus.Serilog
Pipe NServiceBus logging messages through to Serilog.
https://docs.particular.net/nuget/NServiceBus.Serilog
var loggerConfiguration = new LoggerConfiguration();
loggerConfiguration.WriteTo.Console();
loggerConfiguration.MinimumLevel.Debug();
loggerConfiguration.WriteTo.File("logFile.txt");
var logger = loggerConfiguration.CreateLogger();
Log.Logger = logger;
//Set NServiceBus to log to Serilog
var serilogFactory = LogManager.Use<SerilogFactory>();
serilogFactory.WithLogger(logger);
Brain designed by Rémy Médard from The Noun Project