pub fn set_print_handler<P: Fn(&str) + Send + Sync + 'static>(func: P)
To set back the default print handler, use the unset_print_handler function.
unset_print_handler