Skip to content

Commit 196ad14

Browse files
Apply suggestions from code review
1 parent 594e733 commit 196ad14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

articles/stream-analytics/stream-analytics-javascript-user-defined-functions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Samstag, 28. Dezember 2019
211211
```
212212

213213
## User Logging
214-
The logging mechanism allow users to capture custom information while a job is running. Log data can be used to debug or assess the correctness of the custom code in real time. This mechanism is available through 3 different methods.
214+
The logging mechanism allows users to capture custom information while a job is running. Log data can be used to debug or assess the correctness of the custom code in real time. This mechanism is available through three different methods.
215215

216216
### Console.Info()
217217
Console.Info method is used to log general information during code execution. This method will log data without interrupting computation. The message logged will be marked as Event Level Informational.
@@ -221,14 +221,14 @@ console.info('my info message');
221221
```
222222

223223
### Console.Warn()
224-
Console.Warn method is used to log data that may not be correct or expected but are still accepted for computation. This method will not interrupt computation and will resume running after method is return. The message logged will be marked as Event Level Warning.
224+
Console.Warn method is used to log data that might not be correct or expected but is still accepted for computation. This method will not interrupt computation and will resume running after the method is returned. The message logged will be marked as Event Level Warning.
225225

226226
```javascript
227227
console.warn('my warning message');
228228
```
229229

230230
### Console.Error() and Console.Log()
231-
Console.Error method is only used to log error case where code cannot continue to run. This method will throw exception with the error information provided as input parameter and job will stop running. The error message logged will be marked as Event Level Error.
231+
Console.Error method is only used to log error cases where code cannot continue to run. This method will throw an exception with the error information provided as the input parameter and job will stop running. The error message logged will be marked as Event Level Error.
232232

233233
```javascript
234234
console.error('my error message');

0 commit comments

Comments
 (0)