title: How do I direct System.Diagnostics.Trace write messages to the ASP.NET trace viewer (trace.axd)?
body: <p>I have an ASP.NET MVC application which is deployed on an Azure instance.</p>
  
  <p>In this application, I have System.Diagnostics.Trace messages all over the place, including here (quoted simply as an example):</p>
  
  <pre><code>public class ExceptionLogFilterAttribute : HandleErrorAttribute
  {
      public override void OnException(ExceptionContext filterContext)
      {
          System.Diagnostics.Trace
              .TraceError(string.Format("{0}\r\n\r\n", 
                          filterContext.Exception.ToString()));
  
          base.OnException(filterContext);
      }
  }
  </code></pre>
  
  <p>In the web.config, I have trace enabled.</p>
  
  <p>
      
      
      
      
    </p>
  
  <p>However, when I browse to trace.axd after I have been redirected to the default error page of the application because an exception has occurred, I do not see any signs of the exception I have written to the trace above.</p>