title: Clearing the log associated with a tracelistener after each run?
body: <p>I'm using TextWriterTraceListener for logging, which is being configured into the app using app.config as shown below. </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.diagnostics&gt;
      &lt;trace autoflush="true" indentsize="100"  &gt;
        &lt;listeners&gt;
          &lt;add name="myListener" type="System.Diagnostics.TextWriterTraceListener" 
               initializeData="MyLog.log" /&gt;
          &lt;remove name="Default" /&gt;
        &lt;/listeners&gt;
      &lt;/trace&gt;
    &lt;/system.diagnostics&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>How do I ensure that the logging starts afresh (clearing the previous contents) after each run, rather than appending to the contents to the existing log ?</p>