Logging within a Process
Usage
js
console.log(...values);Parameters
valuesone or more values to output to the server log. Any number of arguments can be passed - strings, numbers, arrays and objects are all supported.
Example
js
console.log('The processes has commenced');TIP
script.log also exists and works identically for a single string - console.log is documented here since it's the more familiar name in JavaScript, and it also accepts multiple arguments.
Logging multiple values
console.log isn't limited to a single string - any number of arguments can be passed in one call, and MODLR logs them together as a single entry:
js
console.log("123", 456, ["i", "am", "an", "array"], { "property": "value" });