Skip to main content

setup_logging

Function setup_logging 

Source
pub fn setup_logging(
    log_level: LevelFilter,
    log_file: Option<&str>,
) -> Result<String>
Expand description

Sets up logging to file and stderr

§Arguments

  • log_level - The level of log messages to capture
  • log_file - Optional path to log file. If None, creates a timestamped file

§Returns

Sets up the logging system

§Arguments

  • log_level - The level of logging to use
  • log_file - Optional log file name or “memory” to use in-memory logging

§Returns

The path to the log file or a description of the logging destination