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