spdlog поддерживает только те типы, которые имеют operator <<
(с #include <fmt/ostream.h>
)
У вас есть 2 варианта:
- Реализация функции:
std::ostream& operator <<(std::ostream&, const std::map<std::string, std::string>&)
- Лог ключ и значение в л oop:
for (const auto&[k, v] : o)
{
spdlog::info("key is {}, value is {}", k, v);
}