Created logByAddon() private function