Page 1 of 1

esp_log_set_vprintf

Posted: Mon Oct 23, 2017 12:20 pm
by kilobyte_ch
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?

Re: esp_log_set_vprintf

Posted: Mon Oct 23, 2017 12:55 pm
by WiFive