Type/to search
Built-in Functions
Global
Log
Log
LogStatus
LogProfit
LogProfitReset
LogReset
LogVacuum
EnableLog
Chart
KLineChart
console.log
console.error
exchange.Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

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

NameTypeRequiredDescription

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).