UE_LOG and va_list args

I’m using a third party library that takes a callback function used to retrieve messages produced by it. It takes two arguments,one is the format string and the other a va_list of arguments. The signature is this:

void MessagesCallback(const char* fmt, va_list args);

The question is, how do I use these arguments to log them in UE4? Is there something equivalent to vprintf that will output to UE4’s log?

I thinks you can use FCStringAnsi::GetVarArgs.

Thank you! That worked perfectly.