none
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">
          <listeners>       
            <add name="myListener" type="System.Diagnostics.TextWriterTraceListener" initializeData="c:\Data.log" traceOutputOptions="DateTime"  />
          </listeners>
        </trace>

     

    thanks

     

     

    Monday, February 4, 2008 3:56 PM

Answers

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

     

     

    Yours,

       Alois Kraus

     

    Monday, February 4, 2008 6:25 PM