Skip to main content

init_logging

Function init_logging 

Source
pub fn init_logging(level: Level, log_file: Option<&str>)
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).