esp-idf has a Logging library. The Logging library contains the esp_log_set_vprintf function. By default, log output goes to UART0. This function can be used to redirect log output to some other ...