Database Reference
In-Depth Information
Logging
In the following example, we have also set the app.config file to use NLog. NSer-
viceBus will support the common logging frameworks, common logging, NLog, Log4Net,
and Serilog. Please see http://docs.particular.net/NServiceBus/logging-in-nservicebus for
more information.
For NLog, we need to add the Nlog NuGet reference to the project:
We need to set the logging levels and the location of where the logs are being sent to in the
app.config file:
The app.config file is set in a way similar to most applications, using Nlog.
For a tutorial on NLog, please check out https://github.com/nlog/nlog/wiki/Tutorial . The
difference is that there needs to be a section name for NServiceBus to use Nlog, <sec-
tion name="nlog" type="NLog.Config.ConfigSectionHandler,
Search WWH ::




Custom Search