A Log library developed in C# for .NET Framework, easy to use and minimalist. To use library either download from here or you can use NuGet Package Manager.
Install-Package SharperLogNet -Version 1.1.0
Or Add Refrences by right clicking on your solution and adding references.
CODE
using SharpLogging;
//you can place the code like load event in any event
private void Window_Loaded(object sender, RoutedEventArgs e)
{
SharpLogging.SharpLogging sg = new SharpLogging.SharpLogging();
sg.Logger("Test");
}
By default if you dont specify path the log txt file will be saved in MyDocuments folder.
To Specify Path use this code
sg.savepath = "D:\\myfolder";