How To Enable Visual Studio 2010 Log

23/05/2010

How To Enable Visual Studio 2010 Log

To enable visual studio logger go to :

  1. C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE (64bit OS)
    C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE (32bit OS)
  2. Edit “devenv.exe.config” (Make sure you close all open instances of Visual Studio)
  3. Add below text before </Configuration> tag,  and edit the location of the log file (E:\Backup\tf.log)

    <system.diagnostics>
          <switches>
            <add name="TeamFoundationSoapProxy" value="4" />
            <add name="VersionControl" value="4" />
          </switches>
          <trace autoflush="true" indentsize="3">
            <listeners>
              <add name="myListener"
           type="Microsoft.TeamFoundation.TeamFoundationTextWriterTraceListener,Microsoft.TeamFoundation.Common, Version=10.0.0.0,
           Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" initializeData="E:\Backup\tf.log" />
              <add name="perfListener" type="Microsoft.TeamFoundation.Client.PerfTraceListener,Microsoft.TeamFoundation.Client,
              Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
            </listeners>
          </trace>
    </system.diagnostics>    .

  4. Save devenv.exe.config and open visual studio.

    For Example:

image

Add comment
facebook linkedin twitter email

Leave a Reply