perform logs in c++?

How do you perform logs in ue4 to check things and if its working properly. Is it print()? Can we use that?


You can use UE_LOG for that, the formatting is similar than printf, be advised that Format expects wide-characters hence you’ll either have to prefix it with an ‘L’ without the quotation marks, or use the TEXT or _T macro.

TCHAR* pMessage = _T( “World” );
UE_LOG( LogClass, Log, _T( “Hello %s” ), pMessage );