12 if (!supported.contains(output_format)) {
13 auto supported_formats = std::string();
14 for (
auto& [name, format] : supported) {
15 supported_formats += name +
", ";
18 Logger::logger->error(
"Invalid output format given: {}. Supported output formats are: {}", output_format, supported_formats);
19 throw std::runtime_error(
"Invalid output format given");
22 return supported[output_format];
static std::shared_ptr< spdlog::logger > logger
Publically accessible shared pointer to the logger.