The resource loading... loading...

console.log

It is used to output debugging information in the “debug information” column in the live trading page. For example, if the live trading Id is 123456, the console.log function outputs debugging information on the live trading page, and at the same time, create a log file with the extension .log and write debugging information in the /logs/storage/123456/ in the directory of the docker to which the live trading belongs, with the filename prefix stdout_.

console.log(…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.log("test console.log")
}
# 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.error console.error}

LogVacuum console.error