console
A console that writes to the run’s log. console.log is the same as log; info, warn, debug and error add [INFO], [WARN], [DEBUG] or [ERROR] to the line.
declare var console: Console;
interface Console { log(...values: unknown[]): void; info(...values: unknown[]): void; warn(...values: unknown[]): void; debug(...values: unknown[]): void; error(...values: unknown[]): void;}console.error only writes a line. To stop the run, use error.
Example
Section titled “Example”function onIntervalClose() { console.info("Bar closed", CLOSE); if (SPREAD > 3) console.warn("Wide spread", SPREAD);}