This sample shows how to customize logging when running inside the NServiceBus host.
Open the app.config file. See the Logging configuration section at the top as well as its contents:
<configuration> <configSections> <section name="Logging" type="NServiceBus.Config.Logging, NServiceBus.Core" /> </configSections> <Logging Threshold="INFO" /> </configuration>
This code instructs NServiceBus to only output logs at a level of INFO or higher.