update log_message to take std::string rather than const char*