Share via


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: String

    The 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

See Also

Reference

UITestTraceUtility Class

StartTracing Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

TextWriterTraceListener