NET Logging Library
Logging to the Console
Basic Tasks > Logging to the Console

The Console target is used to log to the console window. 

It has these properties that can be configured:

 

 

//Example runtime configuration, can also use log.config, app.config, or web.config
Log.ResetConfiguration();   
ConsoleTarget target = new ConsoleTarget();       
Log.Config.Targets.Add(target);

Log.Debug("This is a test");