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 capturelog_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 uselog_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