proxy_child_output_to_log

Function proxy_child_output_to_log 

fn proxy_child_output_to_log<'a>(
    child: &mut Child,
    target: Cow<'a, str>,
    stdout_level: Option<Level>,
    stderr_level: Option<Level>,
) -> impl Future<Output = ()> + 'a
Expand description

Proxies the output of a child process to log.

This function takes the stdout and stderr of a child process and moves them into a future. The future reads lines from the streams and logs them using the log crate.