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

Enable or disable logging of order information.

EnableLog(enable)

Examples

Turn off logging of order information.

javascript
function main() { EnableLog(false) }
python
def main(): EnableLog(False)
rust
fn main() { EnableLog(false); }

Arguments

NameTypeRequiredDescription

enable

bool

Yes

When the enable parameter is set to a falsy value (e.g. false), order logs (i.e. the logs generated by functions such as exchange.Buy()) will not be printed, nor will they be written to the live trading database.

See Also