You're doing #UE5 logging wrong! A short thread on Unreal's new structured logging system introduced in 5.2.
The new UE_LOGFMT macro is easier to use, allows for positional and named fields, and supports most basic types (booleans, integers, floats) + some core engine types (FString, TArray, FDateTime, etc.). Readable formatting strings are the new rage in 2023, I hear.
Here's another example with named fields and arrays. Unlike positional fields order is irrelevant and extra fields are ignored. Note that field names must be unique in both cases.
Additionally you can provide custom serialization for any type. There's really no excuse to still use the clunky ol' UE_LOG!
• • •
Missing some Tweet in this thread? You can try to
force a refresh