Skip to main content

init_cli_logger

Function init_cli_logger 

Source
pub fn init_cli_logger(default_level: LevelFilter)
Expand description

Install a plain global logger for CLI subcommands other than scan.

scan installs an indicatif-aware bridge via ScanProgress::init_logging_bridge so log lines never corrupt its progress bars; the other subcommands have no bars and use this simpler logger. default_level sets the baseline filter (derived from -q/-v); an explicit RUST_LOG still overrides it. Safe to call at most once — a second call, or a call after a bridge is installed, is a no-op.