Function init_logging

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

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

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.