set_output_interceptor

Function set_output_interceptor 

Source
pub fn set_output_interceptor<F>(f: F)
where F: Fn(&str, &str) -> Cow<'static, str> + Send + Sync + 'static,
Expand description

Set a global output interceptor. The interceptor receives a category and text and returns the (possibly transformed) text to print.