Common.Logging

Source
NuGet Package NServiceBus.CommonLogging (2.x)
Target NServiceBus Version: 5.x
Standard support for version 5.x of NServiceBus has expired. For more information see our Support Policy.

The NServiceBus.CommonLogging package provides support for writing NServiceBus log entries to Common.Logging. Common.Logging provides a simple logging abstraction to switch between different logging implementations, similar to Microsoft.Extensions.Logging.

Usage

LogManager.Adapter = new ConsoleOutLoggerFactoryAdapter();
NServiceBus.Logging.LogManager.Use<CommonLoggingFactory>();

Samples


Last modified