Simulating spdlog in Unreal Engine

Integrating third-party libraries that rely on spdlog in Unreal Engine can pose challenges without directly adding that dependency. This short guide provides steps to simulate the spdlog API using Unreal’s native logging system (UE_LOG), which ensures compatibility while avoiding unnecessary dependencies. To create a logging utility that mimics spdlog, we can create a class with methods for logging at various severity levels. This class will convert different types to FString for logging and formatting....

September 25, 2024 · 3 min · Georgy Treshchev