Here’s my implementation
// Called when the game starts
void UPositionReport::BeginPlay()
{
Super::BeginPlay();
#
FString ObjectName = GetOwner()->GetName();
FVector Location = GetOwner()->GetActorLocation();
FString ObjectPosition = FString::Printf(TEXT("X=%g, Y=%g, Z=%g"),Location.X,Location.Y,Location.Z);
UE_LOG(LogTemp, Warning, TEXT("Position report for %s at %s"), *ObjectName,*ObjectPosition);
// ...
}