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

The Rich Textbox target writes to a WinForm rich 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();  
RichTextboxTarget target = new RichTextboxTarget();  
target.RichTextboxControl = myRichTextBox;   
Log.Config.Targets.Add(target);

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