UE_LOGFMT
#include "Logging/StructuredLog.h"
DEFINE_LOG_CATEGORY_STATIC(LogSlasherGame, All, All);
const FString Name = "Patrick Bateman";
const bool IsDead = false;
const int32 Ammo = 10;
UE_LOGFMT(LogSlasherGame, Display, "Name: {0}, is alive: {1}, ammo: {2}", Name, !IsDead, Ammo);#include "Logging/StructuredLog.h"
DEFINE_LOG_CATEGORY_STATIC(LogSlasherGame, All, All);
const FString Name = "Patrick Bateman";
const bool IsDead = false;
const int32 Ammo = 10;
UE_LOGFMT(LogSlasherGame, Display, "Name: {0}, is alive: {1}, ammo: {2}", Name, !IsDead, Ammo);
UE_LOG(LogSlasherGame, Display, TEXT("Name: %s, is alive: %s, ammo: %d"), *Name, IsDead ? TEXT("false") : TEXT("true"), Ammo);Last updated