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: README.md
+28-23Lines changed: 28 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -137,6 +137,10 @@ The following properties are available in expressions:
137
137
138
138
The built-in properties mirror those available in the CLEF format.
139
139
140
+
The exception property `@x` is treated as a scalar and will appear as a string when formatted into text. The properties of
141
+
the underlying `Exception` object can be accessed using `Inspect()`, for example `Inspect(@x).Message`, and the type of the
142
+
exception retrieved using `TypeOf(@x)`.
143
+
140
144
### Literals
141
145
142
146
| Data type | Description | Examples |
@@ -183,29 +187,30 @@ calling a function will be undefined if:
183
187
* any argument is undefined, or
184
188
* any argument is of an incompatible type.
185
189
186
-
| Function | Description |
187
-
| :--- | :--- |
188
-
|`Coalesce(p0, p1, [..pN])`| Returns the first defined, non-null argument. |
189
-
|`Concat(s0, s1, [..sN])`| Concatenate two or more strings. |
190
-
|`Contains(s, t)`| Tests whether the string `s` contains the substring `t`. |
191
-
|`ElementAt(x, i)`| Retrieves a property of `x` by name `i`, or array element of `x` by numeric index `i`. |
192
-
|`EndsWith(s, t)`| Tests whether the string `s` ends with substring `t`. |
193
-
|`IndexOf(s, t)`| Returns the first index of substring `t` in string `s`, or -1 if the substring does not appear. |
194
-
|`IndexOfMatch(s, p)`| Returns the index of the first match of regular expression `p` in string `s`, or -1 if the regular expression does not match. |
195
-
|`IsMatch(s, p)`| Tests whether the regular expression `p` matches within the string `s`. |
196
-
|`IsDefined(x)`| Returns `true` if the expression `x` has a value, including `null`, or `false` if `x` is undefined. |
197
-
|`LastIndexOf(s, t)`| Returns the last index of substring `t` in string `s`, or -1 if the substring does not appear. |
198
-
|`Length(x)`| Returns the length of a string or array. |
199
-
|`Now()`| Returns `DateTimeOffset.Now`. |
200
-
|`Rest([deep])`| In an `ExpressionTemplate`, returns an object containing the first-class event properties not otherwise referenced in the template. If `deep` is `true`, also excludes properties referenced in the event's message template. |
201
-
|`Round(n, m)`| Round the number `n` to `m` decimal places. |
202
-
|`StartsWith(s, t)`| Tests whether the string `s` starts with substring `t`. |
203
-
|`Substring(s, start, [length])`| Return the substring of string `s` from `start` to the end of the string, or of `length` characters, if this argument is supplied. |
204
-
|`TagOf(o)`| Returns the `TypeTag` field of a captured object (i.e. where `TypeOf(x)` is `'object'`). |
205
-
|`ToString(x, [format])`| Convert `x` to a string, applying the format string `format` if `x` is `IFormattable`. |
206
-
|`TypeOf(x)`| Returns a string describing the type of expression `x`: a .NET type name if `x` is scalar and non-null, or, `'array'`, `'object'`, `'dictionary'`, `'null'`, or `'undefined'`. |
207
-
|`Undefined()`| Explicitly mark an undefined value. |
208
-
|`UtcDateTime(x)`| Convert a `DateTime` or `DateTimeOffset` into a UTC `DateTime`. |
|`Coalesce(p0, p1, [..pN])`| Returns the first defined, non-null argument. |
193
+
|`Concat(s0, s1, [..sN])`| Concatenate two or more strings. |
194
+
|`Contains(s, t)`| Tests whether the string `s` contains the substring `t`. |
195
+
|`ElementAt(x, i)`| Retrieves a property of `x` by name `i`, or array element of `x` by numeric index `i`. |
196
+
|`EndsWith(s, t)`| Tests whether the string `s` ends with substring `t`. |
197
+
|`IndexOf(s, t)`| Returns the first index of substring `t` in string `s`, or -1 if the substring does not appear. |
198
+
|`IndexOfMatch(s, p)`| Returns the index of the first match of regular expression `p` in string `s`, or -1 if the regular expression does not match. |
199
+
|`Inspect(o, [deep])`| Read properties from an object captured as the scalar value `o`. |
200
+
|`IsMatch(s, p)`| Tests whether the regular expression `p` matches within the string `s`. |
201
+
|`IsDefined(x)`| Returns `true` if the expression `x` has a value, including `null`, or `false` if `x` is undefined. |
202
+
|`LastIndexOf(s, t)`| Returns the last index of substring `t` in string `s`, or -1 if the substring does not appear. |
203
+
|`Length(x)`| Returns the length of a string or array. |
204
+
|`Now()`| Returns `DateTimeOffset.Now`. |
205
+
|`Rest([deep])`| In an `ExpressionTemplate`, returns an object containing the first-class event properties not otherwise referenced in the template. If `deep` is `true`, also excludes properties referenced in the event's message template. |
206
+
|`Round(n, m)`| Round the number `n` to `m` decimal places. |
207
+
|`StartsWith(s, t)`| Tests whether the string `s` starts with substring `t`. |
208
+
|`Substring(s, start, [length])`| Return the substring of string `s` from `start` to the end of the string, or of `length` characters, if this argument is supplied. |
209
+
|`TagOf(o)`| Returns the `TypeTag` field of a captured object (i.e. where `TypeOf(x)` is `'object'`). |
210
+
|`ToString(x, [format])`| Convert `x` to a string, applying the format string `format` if `x` is `IFormattable`. |
211
+
|`TypeOf(x)`| Returns a string describing the type of expression `x`: a .NET type name if `x` is scalar and non-null, or, `'array'`, `'object'`, `'dictionary'`, `'null'`, or `'undefined'`. |
212
+
|`Undefined()`| Explicitly mark an undefined value. |
213
+
|`UtcDateTime(x)`| Convert a `DateTime` or `DateTimeOffset` into a UTC `DateTime`. |
209
214
210
215
Functions that compare text accept an optional postfix `ci` modifier to select case-insensitive comparisons:
0 commit comments