Skip to main content

apply

Function apply 

Source
pub fn apply(raw: Option<&str>, warn_sink: &mut dyn Write)
Expand description

Apply raw (the snapshotted LINESMITH_LOG value, None if unset) to the process-wide level. On an unrecognized value the logger resets to [DEFAULT_LEVEL] and writes one line to warn_sink; the driver threads the injected CLI stderr through so tests and embedders don’t see ambient stderr pollution.