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.

Community Additions

ADD
Show: