资源加载中... loading...

console.error

Used for error output in the “Debug message” field on the live trading page. For example, if the live trading Id is 123456, the console.error function creates a log file with the extension .log in the /logs/storage/123456/ directory of the docker where the live trading belongs, and writes the error output with the prefix stderr_.

console.error(…msgs)

The parameter msg is the content of the output, and the parameter msg can be passed more than one. msg false string, number, bool, object, array, null and other types supported by the system.

function main() {
    console.error("test console.error")
}
# Not supported
// Not supported
  • Only the JavaScript language supports this function.
  • This function is only supported by live trading, but not by “Debugging Tools” or “Backtesting System”.
  • Outputting an object is converted to the string [object Object], so try to output as much readable information as possible.

{@fun/Log/console.log console.log}

console.log Market