Issue with Logging in Async Task

I’m working on custom UE4 Online Subsystem. I use async tasks for matchmaking, and got an issue that none of UE_LOG, UE_LOG_ONLINE, GLog->Log(…) work inside the async task. I see use of those in Steam Subsystem async tasks though, but I am not sure if that works there as well. Debugging led me to the piece of code in which there is a branch for master thread id and secondary threads which behaves a bit differently. But I could not figure out how does it work in the end.

So the question is: how to use logging macros and functions with async tasks and threads?