/Engine/Source/Runtime/Core/Public/Misc/OutputDeviceRedirector.h
The current thread can redirect to buffered output devices without buffering, and becomes responsible for flushing buffered logs from secondary threads. Logs from secondary threads will not be redirected unless the current thread periodically flushes threaded logs.
void SetCurrentThreadAsPrimaryThread()