NET Logging Library
Logging to Trace
Basic Tasks > Logging to Trace

The Trace target is used to log to the Trace built into .NET

It has these properties that can be configured:

 

 

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

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