Serilog Seq Logging

Component: Serilog Tracing
NuGet Package NServiceBus.Serilog.Tracing (4-pre)
This is a community run project
Target NServiceBus Version: 7.x
This page targets a pre-release version and is subject to change prior to the final release.


An instance of Seq running one http://localhost:5341.

Code walk-through

Illustrates customizing logginNServiceBus.Serilog) usage by configuring Serilog targets and rules.

Configure Serilog

var tracingLog = new LoggerConfiguration()
var serilogFactory = LogManager.Use<SerilogFactory>();

Pass that configuration to NServiceBus

var endpointConfiguration = new EndpointConfiguration("Samples.Logging.SerilogTracing");

Related Articles

  • Logging
    Manage and integrate with NServiceBus logging.
  • Serilog Tracing
    Writing diagnostic log entries via Serilog Tracing.

Last modified