Skip to main content

resolve_log_settings

Function resolve_log_settings 

Source
pub fn resolve_log_settings(
    cli_level: Option<String>,
    cli_dir: Option<PathBuf>,
    cli_format: Option<String>,
    cli_rotation: Option<String>,
    config: &LogConfig,
    default_dir: &Path,
) -> LogSettings
Expand description

Resolve every logging setting. cli_level already has RUST_LOG folded in by clap’s env attribute on Cli::log_level; dir/format/rotation have no env var, matching the rest of the config surface (see crate::config).