title: Adding a custom path for a Tracesource TextWriterTraceListener output in config
body: <p>So I'm using Tracesource to log some errors and wan't to create a log file in a users local windows document structure ( something like <code>System.Environment.SpecialFolder.LocalApplicationData</code> ).</p>
  
  <p>However I have no idea if I can do anything like that inside a config file.</p>
  
  <pre><code>&lt;system.diagnostics&gt;
      &lt;trace autoflush="true"/&gt;
      &lt;sources&gt;
          &lt;source name="MainSource"
                switchName="MainSwitch"
                switchType="System.Diagnostics.SourceSwitch" &gt;
              &lt;listeners&gt;
                  &lt;add name="LogFileListener" /&gt;
              &lt;/listeners&gt;
          &lt;/source&gt;
      &lt;/sources&gt;
      &lt;sharedListeners&gt;
          &lt;add name="LogFileListener"
             type="System.Diagnostics.TextWriterTraceListener"
             initializeData="This is the place the output file goes to"
             traceOutputOptions="ProcessId, DateTime, Callstack" /&gt;
      &lt;/sharedListeners&gt;
      &lt;switches&gt;
          &lt;add name="MainSwitch" value="Verbose" /&gt;
      &lt;/switches&gt;
  &lt;/system.diagnostics&gt;
  </code></pre>
  
  <p>initializeData is I think a parameter to the constructor and is where I would have to put a custom path.</p>