Skip to main content

init_command_logging

Function init_command_logging 

Source
pub fn init_command_logging(level: Option<LogLevel>) -> Result<(), String>
Expand description

The --log-level flag and the per-invocation decision it feeds. Re-exported for main.rs, which is where the subscriber is installed. Installs the diagnostic subscriber a one-shot admin command asked for.

level is None when a non-empty RUST_LOG is what asked, in which case it supplies the filter through [build_env_filter]’s second layer — see plan_logging, which is what decides this function is called at all.