Skip to main content

init_with_writer

Function init_with_writer 

Source
pub fn init_with_writer<W>(
    filter: EnvFilter,
    writer: W,
    ansi: bool,
) -> Result<(), TryInitError>
where W: for<'a> MakeWriter<'a> + Send + Sync + 'static,
Expand description

Installs the global subscriber, writing to writer with colour codes only when ansi, and bridges log records into it.