Tested logging for threads.