LogReset
Clear the logs.
LogReset()
LogReset(remain)Examples
Keep the 10 most recent log entries and clear the rest.
javascript
function main() {
// Retain the 10 most recent log entries and clear the rest
LogReset(10)
}
python
def main():
LogReset(10)
rust
fn main() {
// Retain the 10 most recent log entries and clear the rest
LogReset(10);
}Arguments
| Name | Type | Required | Description |
remain | number | No | Number of most recent log entries to retain. |
See Also
Remarks
The startup log generated each time a live trading strategy starts is counted as one entry. Therefore, if no parameter is passed and the strategy produces no log output when it starts, the logs will not be displayed at all, and you will need to wait for the docker to send back the logs (this is normal behavior, not an error).