Enable TFS Trace


Enable Component Trace in TFS AT


How to: Use Web Services to Enable and Configure Trace for Team Foundation Server Components


Enable Globally Trace in TFS AT


1. Open web.config file in C:\Program Files\Microsoft Visual Studio 2008 Team Foundation Server\Web Services

2. Enable traceWriter to write to file:

<add key="traceWriter" value="true"/>



3. Change the trace switches to


   <system.diagnostics>
<assert assertuienabled="false" />
<trace autoflush="false" indentsize="4" />
<!-- Trace Switches
Each of the trace switches should be set to a value between 0 and 4, inclusive.
0: No trace output
1-4: Increasing levels of trace output; see Systems.Diagnostics.TraceLevel
-->

<switches>
<add name="API" value="4" />
<add name="Authentication" value="4" />
<add name="Authorization" value="4" />
<add name="Database" value="4" />
<add name="General" value="4" />
<!-- WorkItem trace switches -->
<add name="traceLevel" value="4" />
            <!-- Test Tools trace switches -->
            <add name="EqtTraceLevel" value="4" />
        </switches>
</system.diagnostics>

Enable TSWA Trace


Uncomment the system.diagnostics section in the TSWA's web.config file.







 

  <system.diagnostics>
<trace autoflush="true">
<listeners>
<add name="TeamPlainTracer" type="System.Diagnostics.TextWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
initializeData="(Log Folder Path)\TswaLog.txt" />
<remove name="Default"/>
</listeners>
</trace>

<switches>
<add name="TSWA.General" value="Verbose"/>
<add name="TSWA.Application" value="Verbose"/>
<add name="TSWA.TeamFoundationServer" value="Verbose"/>
<add name="TSWA.UserControl" value="Verbose"/>
<add name="TSWA.Configuration" value="Verbose"/>
<add name="TSWA.Security" value="Verbose"/>
<add name="TSWA.API" value="Verbose"/>
</switches>
</system.diagnostics>


Enable TFS Client Logging


http://blogs.msdn.com/edhintz/archive/2007/03/30/tfs-client-tracing.aspx


 


Enable TFS Build Service Logging


Uncomment the system.diagnostics section in the tfsbuildservice.exe.config, which is located at <VS Installation Folder>/Common7/IDE/PrivateAssemblies/.


 

  <!-- Trace settings.
Uncomment the system.diagnostics section below to get a trace log for the
Team Build Service. Ensure that the C:\logs directory exists and is
writeable by the Build Service user.

The following trace categories are provided for Team Foundation:
- API: Covers method usage, service to web service calls (from the caller's
perspective), public methods.
- Authorization: Covers authorization related components
- Authentication: Covers authentication components
- Database: Covers database interaction of the component
- General: Covers cases that do not fit the above categories.

Trace Switches
Each of the trace switches should be set to a value between 0 and 4, inclusive.
0:No trace output
1-4:Increasing levels of trace output; see Systems.Diagnostics.TraceLevel
-->

<system.diagnostics>
<switches>
<add name="API" value="4" />
<add name="Authentication" value="4" />
<add name="Database" value="4" />
<add name="General" value="4" />
</switches>
<trace autoflush="true" indentsize="4">
<listeners>
<add name="myListener"
type="System.Diagnostics.TextWriterTraceListener"
initializeData="C:\logs\buildmachine.log" />
</listeners>
</trace>
</system.diagnostics>

Skip to main content