Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(config: &LoggingConfig) -> Result<LoggingRuntime>
Expand description

Installs process-wide operational logging from resolved config.

Stderr is always enabled. Explicit file sinks fail startup if they cannot be opened.

Verbosity comes from LoggingConfig::level: records below that minimum severity are discarded. Dropping the returned LoggingRuntime flushes sinks and detaches this logger from the process-global log proxy when it is still installed.