# Logging nested TMap / TSet in UE C++ without nested JoinBy 

**URL:** <https://forums.unrealengine.com/t/logging-nested-tmap-tset-in-ue-c-without-nested-joinby/2833013>\
**Category:** C++\
**Tags:** logging, unreal-engine, print-string, CPP\
**Created:** [September 21, 2026, 3:15pm UTC](https://forums.unrealengine.com/t/logging-nested-tmap-tset-in-ue-c-without-nested-joinby/2833013 "2026-09-21T15:15:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Woo\_z1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Woo\_z1](https://forums.unrealengine.com/u/Woo_z1)\
**Post date:** [September 21, 2026, 3:15pm UTC](https://forums.unrealengine.com/t/logging-nested-tmap-tset-in-ue-c-without-nested-joinby/2833013/1 "2026-09-21T15:15:00Z")

</div>

Problem: logging TMap\<uint64, TSet\> is still nested FString::JoinBy. If the value type later changes from TArray to TSet, every lambda signature has to change with it.

```c++
  UE_LOG(LogTemp, Display, TEXT("IdToValues: %s"), *FString::JoinBy(IdToValues, TEXT(","), [](const TPair<uint64, TSet<int32>>& Pair) {
    return FString::Printf(TEXT("{%llu:[%s]}"), Pair.Key, *FString::JoinBy(Pair.Value, TEXT(","), [](int32 Value) {
      return FString::Printf(TEXT("%d"), Value);
    }));
  }));

```

Strify is a UE 5.6+ C++ plugin: one call, compile-time overloads (SFINAE / if constexpr).

```c++
  UE_LOG(LogTemp, Display, TEXT("IdToValues: %s"), *UStrify::ToString(IdToValues, true));
  // second arg is Multilines

```

Not JSON. Not UPROPERTY reflection. Not Blueprint nodes.  
LexToString covers scalars; it does not recurse containers or stale weak ptrs.  
Add FString ToString() const on a struct or UObject and it is picked up the same way FVector already works.

Limits: UE 5.6+; empty containers stringify to “”; UObject without ToString() renders . Automation specs in the repo.

> **[GitHub - sgamerw/Strify: UE 5.6+ C++ plugin: UStrify::ToString for...](https://github.com/sgamerw/Strify)**
>
> UE 5.6+ C++ plugin: UStrify::ToString for TArray/TSet/TMap, weak/shared ptrs, UENUM, FVariant, and types with ToString().
