Automatic / Periodic Flushing of Apptrace-based Logging
Posted: Fri Jan 31, 2020 5:39 pm
I am trying to use apptrace/TRAX-based logging to replace the default UART-based logging for my application.
It seems to be working, if I add this early in my app_main function
However I must manually call to flush the collected logs out of TRAX and into the logtrace_proc.py script.
I'd like to have the logs flushed automatically (ideally as fast as possible), so long as it is not worse than UART, performance-wise. Is there a way to configure that, or is there something I'm doing incorrectly that is preventing that?
It seems to be working, if I add this early in my app_main function
Code: Select all
esp_log_set_vprintf(esp_apptrace_vprintf);
Code: Select all
esp_apptrace_flush(ESP_APPTRACE_DEST_TRAX, 100000);
I'd like to have the logs flushed automatically (ideally as fast as possible), so long as it is not worse than UART, performance-wise. Is there a way to configure that, or is there something I'm doing incorrectly that is preventing that?