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)

Syntax

'Declaration
Public Shared Function StartTracing ( _
    baseDirectory As String, _
    dirName As String _
) As TextWriterTraceListener
public static TextWriterTraceListener StartTracing(
    string baseDirectory,
    string dirName
)
public:
static TextWriterTraceListener^ StartTracing(
    String^ baseDirectory, 
    String^ dirName
)
static member StartTracing : 
        baseDirectory:string * 
        dirName:string -> TextWriterTraceListener 
public static function StartTracing(
    baseDirectory : String, 
    dirName : String
) : TextWriterTraceListener

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.

Remarks

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.

.NET Framework Security

See Also

Reference

UITestTraceUtility Class

StartTracing Overload

Microsoft.VisualStudio.TestTools.UITest.Extension Namespace

TextWriterTraceListener