It is recommended to directly use the Microsoft. to log entries as it also supports semantic logging. Please see Logging in .NET Core and ASP.NET Core for further details.
Logging integration into the host
When using NServiceBus 10.2 or later with the .NET Generic Host, use Microsoft. directly instead of Common.Logging. The bridge package is not required:
var builder = Host.CreateApplicationBuilder();
builder.Logging.AddConsole();
builder.Services.AddNServiceBusEndpoint(endpointConfiguration);
For more information, see Hosting with Microsoft.Extensions.Hosting.
The NServiceBus. 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>();