How To: Convert ASP.NET Trace Messages Into System.Diagnostics.Trace Messages
After reading a post from [danw], I decided to extend the discussion on Tracing in ASP.NET. Dan discussed in his blog how to capture System.Diagnostic.Trace messages in the ASP.NET trace reports via trace.axd. This blog post is to demonstrate how easy it is to do the opposite - send TraceContext message to System.Diagnostics.Trace listeners. In web.config, do the following:
<!-- tracing --> <trace enabled="true" writeToDiagnosticsTrace="true"/>Done!