Gekko Forum
Backtest log location - Printable Version

+- Gekko Forum (https://forum.gekko.wizb.it)
+-- Forum: Gekko (https://forum.gekko.wizb.it/forum-13.html)
+--- Forum: General Discussion (https://forum.gekko.wizb.it/forum-14.html)
+--- Thread: Backtest log location (/thread-57560.html)



Backtest log location - Guysmo - 08-13-2018

Hi,

I want to read all logs write in backtest mod in order to debug my strat but I can't find where they are.
Gekko/log is always empty, maybe something isn't enable.

Thanks


RE: Backtest log location - askmike - 08-14-2018

Backtests generate a LOT of logging (especially if you have debug logging turned on), this fills up your disk as well as make backtests slower.

I can help you enable it, but first can you help me understand what kind of information you want to get out of these backtests?


RE: Backtest log location - Guysmo - 08-14-2018

(08-14-2018, 01:12 AM)askmike Wrote: Backtests generate a LOT of logging (especially if you have debug logging turned on), this fills up your disk as well as make backtests slower.

I can help you enable it, but first can you help me understand what kind of information you want to get out of these backtests?

I would like to print all log.info() and log.debug() from a strategy.js, to help me to understand how things are working.
Thanks


RE: Backtest log location - askmike - 08-14-2018

Backtests runs through the UI have surpressed logging, and we have to jump through some hoops to enable them again.

I'd recommend running Gekko over the CLI: this gives you more control, see this: https://gekko.wizb.it/docs/commandline/about_the_commandline.html

It boils down to:

- open up sample-config.js and configure your market
- run `node gekko -c sample-config.js -b`

and voila Smile


RE: Backtest log location - Guysmo - 08-14-2018

(08-14-2018, 12:54 PM)askmike Wrote: Backtests runs through the UI have surpressed logging, and we have to jump through some hoops to enable them again.

I'd recommend running Gekko over the CLI: this gives you more control, see this: https://gekko.wizb.it/docs/commandline/about_the_commandline.html

It boils down to:

- open up sample-config.js and configure your market
- run `node gekko -c sample-config.js -b`

and voila Smile

Thank you Askmike, I will check that !