Protect log import