Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UITestTraceUtility::StartTracing Method (String^, String^)

 

Returns a trace listener stream for tracing that saves log files in the specified folder.

Namespace:   Microsoft.VisualStudio.TestTools.UITest.Extension
Assembly:  Microsoft.VisualStudio.TestTools.UITest.Extension (in Microsoft.VisualStudio.TestTools.UITest.Extension.dll)

public:
static TextWriterTraceListener^ StartTracing(
	String^ baseDirectory,
	String^ dirName
)

Parameters

baseDirectory
Type: System::String^

The base folder for the trace files.

dirName
Type: System::String^

Name of the folder to create and use to save log files in the baseDirectory.

Return Value

Type: System.Diagnostics::TextWriterTraceListener^

A trace listener stream.

If no value is provided in the dirName parameter, log files are saved in the baseDirectory folder. If no value is provided in the baseDirectory folder, log files are saved in the TEMP folder.

Return to top
Show: