Writing to a new log file each day with TraceSource
<p>I am using a logger in my application to write to files. The source, switch and listeners have been defined in the app.config file as follows:</p>

<pre><code>  &lt;system.diagnostics&gt;
    &lt;sources&gt;
      &lt;source name="LoggerApp" switchName="sourceSwitch" switchType="System.Diagnostics.SourceSwitch"&gt;
        &lt;listeners&gt;
          &lt;add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="myListener.log" /&gt;
        &lt;/listeners&gt;
      &lt;/source&gt;
    &lt;/sources&gt;
    &lt;switches&gt;
      &lt;add name="sourceSwitch" value="Information" /&gt;
    &lt;/switches&gt;
  &lt;/system.diagnostics&gt;
</code></pre>

<p>Inside, my .cs code, I use the logger as follows:</p>

<pre><code>private static TraceSource logger = new TraceSource("LoggerApp");
logger.TraceEvent(TraceEventType.Information, 1, "{0} : Started the application", DateTime.Now);
</code></pre>

<p>What would I have to do to create a new log file each day instead of writing to the same log file every time?</p>
