Skip to content

Commit 6ff3e79

Browse files
authored
Update how-to-use-logging.md
Edits to raise acrolinx score
1 parent f7e4e8e commit 6ff3e79

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/cognitive-services/Speech-Service/how-to-use-logging.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Logging to file is an optional feature for the Speech SDK. During development lo
1818

1919
## Sample
2020

21-
The log file name is specified on a configuration object. Taking the `SpeechConfig` as an example and assuming that you have created an instance called `speechConfig`:
21+
The log file name is specified on a configuration object. Taking the `SpeechConfig` as an example and assuming that you've created an instance called `speechConfig`:
2222

2323
```csharp
2424
speechConfig.SetProperty(PropertyId.Speech_LogFilename, "LogfilePathAndName");
@@ -138,7 +138,7 @@ To access a created file, add the below properties to the `Info.plist` property
138138
<true/>
139139
```
140140

141-
If you are using Swift on iOS, please use the following code snippet to enable logs:
141+
If you're using Swift on iOS, please use the following code snippet to enable logs:
142142
```swift
143143
let documentsDirectoryPathString = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true).first!
144144
let documentsDirectoryPath = NSURL(string: documentsDirectoryPathString)!
@@ -152,9 +152,9 @@ More about iOS File System is available [here](https://developer.apple.com/libra
152152

153153
Although a log file output path is specified as a configuration property into a `SpeechRecognizer` or other SDK object, SDK logging is a singleton, *process-wide* facility with no concept of individual instances. You can think of this as the `SpeechRecognizer` constructor (or similar) implicitly calling a static and internal "Configure Global Logging" routine with the property data available in the corresponding `SpeechConfig`.
154154

155-
This means that you cannot, as an example, configure six parallel recognizers to output simultaneously to six separate files. Instead, the latest recognizer created will configure the global logging instance to output to the file specified in its configuration properties and all SDK logging will be emitted to that file.
155+
This means that you can't, as an example, configure six parallel recognizers to output simultaneously to six separate files. Instead, the latest recognizer created will configure the global logging instance to output to the file specified in its configuration properties and all SDK logging will be emitted to that file.
156156

157-
This also means that the lifetime of the object that configured logging is not tied to the duration of logging. Logging will not stop in response to the release of an SDK object and will continue as long as no new logging configuration is provided. Once started, process-wide logging may be stopped by setting the log file path to an empty string when creating a new object.
157+
This also means that the lifetime of the object that configured logging isn't tied to the duration of logging. Logging will not stop in response to the release of an SDK object and will continue as long as no new logging configuration is provided. Once started, process-wide logging may be stopped by setting the log file path to an empty string when creating a new object.
158158

159159
To reduce potential confusion when configuring logging for multiple instances, it may be useful to abstract control of logging from objects doing real work. An example pair of helper routines:
160160

0 commit comments

Comments
 (0)