A lot of applications use logging as a way to store information about performed operations. Such data is very useful when you have to diagnose an issue. Logging could be done on many ways, but sometimes it’s just easier to use an existing solution. I’d like to introduce one of many libraries for logging, but quite powerful – log4net.</span>

Get log4net</h3>
Let’s create a console application – log4netTutorial. Next you have to reference log4net library. The easiest way is to install NuGet package: