Adding std::thread logging.