I'm using System.Diagnostics.TraceSource for logging and one of my listeners is a TextWriterTraceListener. In the tracing primer here it sets this up as follows:
<listeners>
<add initializeData="output.txt"
type="System.Diagnostics.TextWriterTraceListener"
name="myLocalListener" />
</listeners>
The problem is that this will always append to output.txt. How do you alter this to an overwrite in the config file?
Programmatically the listener I want is a:
new TextWriterTraceListener(new StreamWriter("output.txt", false));