Pass std::string instead of const char* to LogMessage function