UITestTraceUtility.StartTracing Method (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)
Syntax
'Declaration
Public Shared Function StartTracing ( _
logFolder As String _
) As TextWriterTraceListener
public static TextWriterTraceListener StartTracing(
string logFolder
)
public:
static TextWriterTraceListener^ StartTracing(
String^ logFolder
)
static member StartTracing :
logFolder:string -> TextWriterTraceListener
public static function StartTracing(
logFolder : String
) : TextWriterTraceListener
Parameters
logFolder
Type: StringThe directory where log files from UI modules are stored.
Return Value
Type: TextWriterTraceListener
A trace listener stream.
Remarks
If no value is provided in the logFolder parameter, log files are stored in the TEMP folder.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.