Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying MASTERING NSERVICEBUS AND PERSISTENCE
  • Table Of Contents Toc
MASTERING NSERVICEBUS AND PERSISTENCE

MASTERING NSERVICEBUS AND PERSISTENCE

By : Richard L Helton
4 (3)
close
close
MASTERING NSERVICEBUS AND PERSISTENCE

MASTERING NSERVICEBUS AND PERSISTENCE

4 (3)
By: Richard L Helton

Overview of this book

This book is intended for developers, designers, and architects alike who wish to build C# NServiceBus enterprise architectures and learn how ESB persists data and messages to help them attain their goals. No prior knowledge of persistence in NServiceBus is required.
Table of Contents (10 chapters)
close
close

Logging


In the following example, we have also set the app.config file to use NLog. NServiceBus 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, <section name="nlog" type="NLog.Config.ConfigSectionHandler, NLog" />. We also set the local configuration by using SetLoggingLibrary.NLog();.

From the app.config file, we are saving a lot of the trace information in the C:\logs\ directory while creating a new file daily with a filename of the current...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
MASTERING NSERVICEBUS AND PERSISTENCE
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon