Default Logging

Component: NServiceBus
NuGet Package NServiceBus (6.x)

Code walk-through

This sample shows the default logging functionality in NServiceBus.

Verifying that the sample works correctly

Inside the [path_to_the_sample]\Core_6\Sample\bin\[Debug/Release] directory should be created a log file called nsb_log_[current_date]_0.

Enabling Logging

var endpointConfiguration = new EndpointConfiguration("Samples.Logging.Default");
// No config is required in version 5 and
// higher since logging is enabled by default

Related Articles

  • Logging
    Manage and integrate with NServiceBus logging.

Last modified