You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/stream-analytics/stream-analytics-javascript-user-defined-functions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,7 +211,7 @@ Samstag, 28. Dezember 2019
211
211
```
212
212
213
213
## 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.
215
215
216
216
### Console.Info()
217
217
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');
221
221
```
222
222
223
223
### 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.
225
225
226
226
```javascript
227
227
console.warn('my warning message');
228
228
```
229
229
230
230
### 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.
0 commit comments