/**
  * @inheritdoc
  */
 public function logFailedItem(FailedItemEvent $event)
 {
     $ident = $this->getLogIdent($event->getImporter()->getImport());
     $originalId = $event->getItem()->getOriginalId();
     $context = ['result' => 'failed', 'item' => (string) $event->getItem(), 'reason' => $event->getReason()];
     $this->doLog($ident, $originalId, $context);
 }
 /**
  * @param FailedItemEvent $event
  */
 public function onItemFailed(FailedItemEvent $event)
 {
     $this->output->writeln(sprintf('<fg=red;options=bold>✘   failed</>: <comment>%s</comment>', (string) $event->getItem()));
     $this->output->writeln(sprintf('<fg=red;options=bold>    reason</>: %s', $event->getReason()));
 }
 /**
  * @param FailedItemEvent $event
  */
 public function onItemFailed(FailedItemEvent $event)
 {
     $this->logger->notice(sprintf('✘  failed: %s', (string) $event->getItem()));
     $this->logger->notice(sprintf('   reason: %s', $event->getReason()));
 }