Moved LogExtension initialization to the secondary thread