NET Logging Library
Logging to Debug
Basic Tasks > Logging to Debug

The Debug target is used to log to the debug window. 

It has these properties that can be configured:

 

 

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

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