Skip to main content

setup_logging

Function setup_logging 

Source
pub fn setup_logging(
    config_dir: &Path,
    log_level: &LevelFilter,
) -> Result<(), Box<dyn Error>>
Expand description

Sets up logging for the application.

§Errors

Returns an error if:

  • The logs directory cannot be created
  • The log file cannot be created
  • The logger initialization fails