NET Logging Library
Logging to AspTrace
Basic Tasks > Logging to AspTrace

The AspTraceTarget is a wrapper around HttpContext.Trace.  

It has these properties that can be overridden:

 

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

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