Skip to content

ashithraj/NServiceBus.Serilog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Add support for sending NServiceBus logging message through Serilog

Already a Patron? skip past this section

Community backed

It is expected that all developers become a Patron to use any of these libraries. Go to licensing FAQ

Platinum Sponsors

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.

Gold Sponsors

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.

Silver Sponsors

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.

Bronze Sponsors

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.

Patrons

Thanks to all the backing developers! Support this project by becoming a patron.

The NuGet package NuGet Status

https://nuget.org/packages/NServiceBus.Serilog/

PM> Install-Package NServiceBus.Serilog

Standard Logging Library

Pipe NServiceBus logging messages through to Serilog.

Documentation

https://docs.particular.net/nuget/NServiceBus.Serilog

Usage

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);

Icon

Brain designed by Rémy Médard from The Noun Project

About

Add support for sending NServiceBus logging message through Serilog

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 100.0%