Add support for sending NServiceBus logging 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 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/
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.