Difference between revisions of "Bot Playground/Built-in Functions/console.error"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Logs data to the error log.</onlyinclude> Read more about error logs. <syntaxhighlight lang="javascript"> cons...") |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 3: | Line 3: | ||
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> | ||
− | console. | + | console.error(...arguments); |
</syntaxhighlight> | </syntaxhighlight> | ||
Line 15: | Line 15: | ||
{{API Variables Table End}} | {{API Variables Table End}} | ||
− | |||
− | |||
− | |||
{{NavMenu}} | {{NavMenu}} |
Latest revision as of 12:29, 30 July 2025
Logs data to the error log. Read more about error logs.
console.error(...arguments);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
...arguments | yes | any number of arguments to be logged to the log. Objects can be translated to a string using JSON.stringify() | |
Output: | |||
result | This function does not return anything |