Set up the logging threading safe.