Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(
    log_level: &str,
    console_log_level: &str,
    log_file: Option<&str>,
    log_backup_count: usize,
)
Expand description

Initialize the logging subsystem with optional file output.

Sets up tracing-subscriber with console output (colorized) and optionally writes to a log file. The log level controls verbosity (DEBUG/INFO/WARN/ERROR).