NET Logging Library
Logging to Response.Write
Basic Tasks > Logging to Response.Write

The Response.Write target wraps the HttpContext.Current.Response.Write to write directly to an ASP.NET web page. 

It has these properties that can be configured:

 

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

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