How to work with NLog in .Net

NLog can log your app data and create logs regardless of the size and complexity of your application

NLog is an open source logging platform for use in .Net, Xamarin, and even Windows Phone applications. It is free, cross-platform, and easy to configure and extend. NLog is a great logging platform that is simple and comes with excellent support for log routing and management capabilities, making it a good choice when you have to choose a logging framework that is highly performant. 

Install NLog

First, you should download a copy of NLog.

Alternatively, you can install NLog using the NuGet Package Manager. To do this, all you need to do is create a project in Visual Studio, right-click on the project in the Solution Explorer window, and then select the “Manage NuGet Packages...” option. Next, you can select NLog.Config as the package you would want to install from the NuGet Package Manager window.

To continue reading this article register now