locked
How enable/disable tracing? RRS feed

  • Question

  •   <system.diagnostics>
        <trace autoflush="true" indentsize="2">
          <listeners>
            <clear/>
          </listeners>
        </trace>
      </system.diagnostics>
    

    Trace.Listeners.Clear();

    I can turn off tracing using the above two methods. I wonder if there is some more elegant way. Is there?

    Wednesday, August 29, 2012 8:44 AM

All replies

  • Hi gift_of_seasons,

    It seems that it is not the correct forum for this issue, since this forum is to discuss the VS debugger tool.

    It seems that this issue is related to “Configuring Tracing”, and maybe you could get some useful information from this MSDN document “Configuring Tracing”, it shared some information about the Enabling Tracing. Hope it could help.

    Best Regards,


    Jack Zhai [MSFT]
    MSDN Community Support | Feedback to us

    Thursday, August 30, 2012 10:28 AM