console.log
Used to output debug information in the "Debug Info" section of the live trading page. For example, when the live trading ID is 123456, the console.log function outputs debug information on the live trading page while creating a log file with .log extension in the docker directory /logs/storage/123456/ and writing debug information to it. The file name prefix is stdout_.
console.log(...msgs)Examples
javascript
function main() {
console.log("test console.log")
}
python
# 不支持
c++
// 不支持Arguments
| Name | Type | Required | Description |
msg | string / number / bool / object / array / any (any type supported by the platform) | No | The parameter |
See Also
Remarks
Notes:
-
Only
JavaScriptlanguage supports this function. -
Only live trading environment supports this function, neither "Debug Tool" nor "Backtesting System" supports it.
-
When outputting objects, they will be converted to the string
[object Object], so it is recommended to output readable information.