esp_log_set_vprintf

kilobyte_ch
Posts: 12
Joined: Wed Apr 19, 2017 2:17 pm

esp_log_set_vprintf

Postby kilobyte_ch » Mon Oct 23, 2017 12:20 pm

Hello,

I'm trying to redirect the log outputs to my MQTT Server instead of UART0. But I'm not really familiar with the used vprintf, nor did I find this function in the esp-idf github repository.

I tried the following to "redirect" it to printf, but just got an Exception while trying:

Code: Select all

int redirect_log(const char * fmt, va_list ap) {
	printf(fmt);

	return 1;
}
Anyone any Idea how it needs to get handled? E.g. how to get it handled thorugh sprintf?

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

Re: esp_log_set_vprintf

Postby WiFive » Mon Oct 23, 2017 12:55 pm


Who is online

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