.NET Logging Library Usage

Using the .NET Logging Library is super easy. To automatically start asynchronously logging to a file and to the console simply add a reference to the KellermanLoggerLibrary in your Visual Studio project and enter this single line of code:

Log.LogDebug( "I am logging with only one line of code!" );

 
If you are using ASP.NET, the ASPNET user must have write access to the directory to do file logging. You can also log to the event log:
Log .IsEventLoggingEnabled = true ;
Log .IsFileLoggingEnabled = false ;
Log .SaveConfig();
Log .LogDebug( "I am logging to the event log" );
After saving to the config file, the settings are loaded automatically at startup by the logger. Now we are back at doing a single line of code:
Log .LogDebug( "I am logging to the event log" );
 
 
For further information take a look at the demo in the trial version and the example code for each property and method in the help file.