char buffer[8]; spdlog::debug("buffer: {}", (const char*)buffer); spdlog::debug("buffer: {}", std::string(buffer));