NuGet Package: NServiceBus.Hosting.Azure (6.x)
Target Version: NServiceBus 5.x
Standard support for version 5.x of NServiceBus has expired. For more information see our Support Policy.
The NServiceBus Azure Host package is deprecated as of Version 9 as Microft has deprecated the Cloud Service hosting model. Users are recommended to switch to a different cloud hosting model.

NServiceBus logging integrates with the Azure diagnostics service through a simple trace logger.

Azure tooling for Visual Studio will set up the Azure Diagnostics Service and NServiceBus will integrate with it directly. Ensure that the following trace listener is added to the app.config so that all NServiceBus logs will be forwarded to the diagnostics service. (The version may differ based on Azure tooling version.)

        type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
        <filter type="" />

Logging settings can than be controlled by configuring the Azure diagnostics service itself using a .wadcfg or .wadcfgx file. For more information refer to the Configuring Diagnostics for Azure Cloud Services and Virtual Machines or Use the Azure Diagnostics Configuration File in Azure SDK 2.4 and earlier articles.

Related Articles

Last modified