AIDC Toolkit / Core / loggableValue
Function: loggableValue() ​
loggableValue(
value):unknown
Defined in: logger.ts:109
Get a loggable representation of a value. Values are returned unmodified, except as follows:
- Big integers are converted to whole numbers where possible, otherwise as their decimal string representations.
- Arrays are limited to a maximum of ten elements. Any array longer than ten elements is replaced with the first four elements, a string of three dots, and the last four elements. This may still create large results for multidimensional arrays.
- Errors are converted to objects with
name,message, andstackproperties. - Symbols are converted to their string representations.
- Functions are converted to strings of the form
Function(name).
Parameters ​
value ​
unknown
Value.
Returns ​
unknown
Loggable value.