Page 1 of 1

Possible to redirect ESP_EARLY_LOG* as well as ESP_LOG*?

Posted: Thu Apr 23, 2020 1:22 am
by Coopdis
Hello,

My app has esp32s running in remote and inaccessible locations. In order to see and debug issues in this environment I am redirecting logging to a a file which I am then able to retrieve remotely.

Sometimes, when running in the lab and looking at my serial monitor I see various errors (task wdt overflows for instance) that are logged using ESP_EARLY and so are not captured by my redirect using esp_log_set_vprintf().

Is there anyway I can capture these ESP_EARLY msgs so I can save them to file without forking the IDF?

Thank you.

Re: Possible to redirect ESP_EARLY_LOG* as well as ESP_LOG*?

Posted: Thu Apr 23, 2020 3:10 am
by WiFive
https://github.com/espressif/esp-idf/bl ... #L253-L261

But you are going to have restrictions on what you can do in that context so you probably have to write to a memory buffer and handle it later.

Re: Possible to redirect ESP_EARLY_LOG* as well as ESP_LOG*?

Posted: Thu Apr 23, 2020 8:30 pm
by Coopdis
That did it!

Thank you very much.

Bill