NET Logging Library
Logging to a Textbox
Basic Tasks > Logging to a Textbox

The Textbox target writes to a WinForm textbox control 

It has these properties that can be configured:

 

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

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