pub fn setup_logs( log_level: &LogLevel, log_file: &Option<PathBuf>, log_file_rollover: Rotation, api_logging: bool, ) -> Result<Option<WorkerGuard>>