Variable input name and value to string

I found something like this:

#define TT(Value) FString::Printf(TEXT(“%s: %i”),TEXT(value), Value)

int z = 5;
UE_LOG(LogTemp, Warning, TEXT(“%s”), *TT(z));

Ofcourse this works only for int. For now I’am working on class that could represend logs like std::cout to the console, and you could print variable with name.