How to log a message from a string variable in Unreal Engine?
<p>I am trying to log a message form a string variable , below is the code I used</p>

<pre><code>std::string s = "ss";//std::to_string(FPaths::GetPath("../"));
 UE_LOG(LogTemp, Warning, *s);
</code></pre>

<p>but it's not working, Can someone tell me how to do this ?
<a href="https://i.stack.imgur.com/GbpjF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/GbpjF.png" alt="enter image description here"></a></p>