Function esp_idf_svc::hal::sys::esp_log_set_vprintf

source ยท
pub unsafe extern "C" fn esp_log_set_vprintf(
    func: Option<unsafe extern "C" fn(_: *const i8, _: *mut c_void) -> i32>,
) -> Option<unsafe extern "C" fn(_: *const i8, _: *mut c_void) -> i32>
Expand description

@brief Set function used to output log entries

By default, log output goes to UART0. This function can be used to redirect log output to some other destination, such as file or network. Returns the original log handler, which may be necessary to return output to the previous destination.

@note Please note that function callback here must be re-entrant as it can be invoked in parallel from multiple thread context.

@param func new Function used for output. Must have same signature as vprintf.

@return func old Function used for output.