setting TextWriterTraceListener options in app.config? RRS feed

  • Question

  • What should my config file look like to set a TextWriter as non thread safe (don't care for the GUID based file names)?  What should be config file look like to set multiple traceOutputOptions?


    What I have so far.....


    <trace autoflush="true" indentsize="4">
            <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\Data.log" traceOutputOptions="DateTime"  />





    Monday, February 4, 2008 3:56 PM


  • Just a guess. Try to specify different output options with a comma separated. The Enum.Parse function should be happy with that.




       Alois Kraus


    Monday, February 4, 2008 6:25 PM