title: Adding tracelistener to web.config
body: <p>I want to use below code with a website. Which <code>config sections</code> I should add to <code>web.config</code> to log the output into a file or windows eventlog ?</p>
  
  <pre><code>using System.Diagnostics;
  
  // Singleton in real code
  Class Logger
  {
     // In constructor: Trace.AutoFlush = false;
  
     public void Log(message)
     {
         String formattedLog = formatLog(message);
         Trace.TraceInformation(formattedLog);
         Trace.Flush();
     }
  }
  </code></pre>