Page 1 of 2
Intercepting log and printf messages
Posted: Wed Aug 01, 2018 10:10 pm
by Deouss
Is there a way to intercept/queue all logs and printfs to some buffer?
This is to display later on some screen or send over network for diagnostics.
Thanks
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 1:33 am
by WiFive
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 1:41 am
by mikemoy
So this brings up a question I have been putting off asking.
When looking at the above link, and you see something like
Code: Select all
vprintf_like_t esp_log_set_vprintf(vprintf_like_t func)
What is the next expected step to learn how to use it?
That and others in that section in and of itself is IMHO useless information.
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 2:59 am
by WiFive
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 3:13 am
by Deouss
Thanks
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 11:51 am
by mikemoy
the link does not work for me.
- 2018-08-02_6-47-08.jpg (98.19 KiB) Viewed 12439 times
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 1:41 pm
by f.h-f.s.
mikemoy wrote:the link does not work for me.
2018-08-02_6-47-08.jpg
You are searching for the repositories type? You really need to specify
"&type=Code" "
https://github.com/search?q=esp_log_set ... &type=Code"
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 2:38 pm
by mikemoy
When I use that URL , that image i sent is what I get.
Re: Intercepting log and printf messages
Posted: Thu Aug 02, 2018 11:02 pm
by WiFive
You must be signed in to search for code across all public repositories.
But it works for me in private browsing so not sure what to say.
Re: Intercepting log and printf messages
Posted: Mon Aug 06, 2018 6:21 pm
by mikemoy
The URL given was:
https://github.com/search?q=esp_log_set ... &type=Code
Signed or not that URL does not work, what did work was this one. Notice the "/espressif/esp-idf" part in the URL link.
https://github.com/espressif/esp-idf/se ... et_vprintf