Megosztás a következőn keresztül:


FileLogger.Start(String, Boolean) Method

Definition

Starts logging to a file.

public static void Start (string filePath, bool append = false);
static member Start : string * bool -> unit
Public Shared Sub Start (filePath As String, Optional append As Boolean = false)

Parameters

filePath
String

Path to a log file on local disk

append
Boolean

Optional. If true, appends to existing log file. If false, creates a new log file

Remarks

Note that each write operation to the file is immediately followed by a flush to disk. For typical usage (e.g. one Speech Recognizer and a Solid State Drive (SSD)) this should not cause performace issues. You may however want to avoid file logging when running many Speech SDK recognizers or other SDK objects simultaneously. Use MemoryLogger or EventLogger instead.

Applies to