Possible to redirect ESP_EARLY_LOG* as well as ESP_LOG*?

Coopdis
Posts: 14
Joined: Wed Jun 20, 2018 7:59 pm

Possible to redirect ESP_EARLY_LOG* as well as ESP_LOG*?

Postby Coopdis » Thu Apr 23, 2020 1:22 am

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.

WiFive
Posts: 3529
Joined: Tue Dec 01, 2015 7:35 am

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

Postby WiFive » Thu Apr 23, 2020 3:10 am

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.

Coopdis
Posts: 14
Joined: Wed Jun 20, 2018 7:59 pm

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

Postby Coopdis » Thu Apr 23, 2020 8:30 pm

That did it!

Thank you very much.

Bill

Who is online

Users browsing this forum: Bing [Bot] and 189 guests