How to: Change the Trace Output Directory for Team Foundation Server Components
You can change the output directory for Team Foundation Server component trace files by editing the web.config file for that component.
To perform this procedure, you must be a member of the Administrators group on the Team Foundation application-tier server. For more information, see Team Foundation Server Permissions.
Do not use the ASP.NET tab of the Internet Information Services (IIS) Manager (inetmgr) to edit a Web.Config file. If you use this tab, an attribute is added to the <configuration> element of the Web.Config file. This attribute interferes with normal functioning.
To change the trace output directory for a Team Foundation Server component
On the application-tier server for Team Foundation, locate the installation directory for the application tier.
Open the Web Services subdirectory.
Open the Web.Config file in a text or XML editor.
Even if you are logged on with administrative credentials, you must start the text or XML editor as an administrator to perform this function on a computer that is running Windows Server 2008 or Windows Vista. To start the program as an administrator, click Start, click All Programs, right-click the program you want to use, and then click Run as administrator. For more information, see the Microsoft Web site.
In the file, locate the <add key="traceDirectoryName"> element.
Update that element by replacing the default location with the directory path where the trace log files are to be stored. For example, type the following string:
<add key="traceDirectoryName" value="C:\TraceFilesFolder" />
Save and close the file.
You must close and restart the Web services application for Team Foundation before your changes will take effect.