Intercepting log and printf messages

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Intercepting log and printf messages

Postby Deouss » Wed Aug 01, 2018 10:10 pm

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


mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Intercepting log and printf messages

Postby mikemoy » Thu Aug 02, 2018 1:41 am

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.


Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: Intercepting log and printf messages

Postby Deouss » Thu Aug 02, 2018 3:13 am

Thanks :D

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Intercepting log and printf messages

Postby mikemoy » Thu Aug 02, 2018 11:51 am

the link does not work for me.

2018-08-02_6-47-08.jpg
2018-08-02_6-47-08.jpg (98.19 KiB) Viewed 12434 times

f.h-f.s.
Posts: 214
Joined: Thu Dec 08, 2016 2:53 pm

Re: Intercepting log and printf messages

Postby f.h-f.s. » Thu Aug 02, 2018 1:41 pm

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"

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Intercepting log and printf messages

Postby mikemoy » Thu Aug 02, 2018 2:38 pm

You are searching for the repositories type? You really need to specify "&type=Code" "https://github.com/search?q=esp_log_set ... &type=Code"
When I use that URL , that image i sent is what I get.

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

Re: Intercepting log and printf messages

Postby WiFive » Thu Aug 02, 2018 11:02 pm

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.

mikemoy
Posts: 626
Joined: Fri Jan 12, 2018 9:10 pm

Re: Intercepting log and printf messages

Postby mikemoy » Mon Aug 06, 2018 6:21 pm

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

Who is online

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