The resource loading... loading...

LogReset

Clear the log.

LogReset(remain)

The remain parameter is used to set the number of recent log entries to keep. remain false number

function main() {
    // Keep the last 10 logs and clear the rest
    LogReset(10)     
}
def main():
    LogReset(10)
void main() {
    LogReset(10);
}

The startup log for each start of the strategy live trading counts as one, so if no parameters are passed in and there is no log output at the start of the strategy, no logs will be displayed at all, waiting for the docker log to be returned (not an exception).

{@fun/Log Log}, {@fun/Log/LogVacuum LogVacuum}

KLineChart LogVacuum