System.Diagnostics.Trace.Listeners

System.Diagnostics.Trace.Listeners.Clear();
System.Diagnostics.Trace.AutoFlush = true;
System.Diagnostics.Trace.Listeners.Add(new System.Diagnostics.TextWriterTraceListener("~/App_Data/app.log"));

 

System.Diagnostics.Trace.Listeners.Add(new System.Web.WebPageTraceListener());

posted @ 2016-06-08 23:44  shiningrise  阅读(340)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css