Std::stringstream Simple example std::stringstream stream; stream << "Seek: " << event.GetInt(); std::string log = stream.str();