FileLogger.Start(String, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Azure SDK for .NET
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: