Is there a way to have everything in the "log" tab flushed to an output file via API?

Created at 25 Apr 2022, 09:17
How’s your experience with the cTrader Platform?
Your feedback is crucial to cTrader's development. Please take a few seconds to share your opinion and help us improve your trading experience. Thanks!
FI

firemyst

Joined 26.03.2019

Is there a way to have everything in the "log" tab flushed to an output file via API?
25 Apr 2022, 09:17


Hi @Spotware,

Is there a way we can have everything that's written in the "log" tab written to an output file when a bot is stopped?

Or do we have to override the Print api call to write to an output file as well as the log tab?

Thank you.


@firemyst
Replies

firemyst
30 Apr 2022, 19:44

@Spotware?

Thank you.


@firemyst

amusleh
02 May 2022, 08:55

Hi,

There is no such feature in Automate API, the best way is to either override the Print method or use a .NET logging library.


@amusleh