Task/Reporting/LoggerTask.php
public function execute(ProcessState $state)
    {
        $options = $this->getOptions($state);
        $context = [];
        foreach ($options['context'] as $contextInfo) {
            $context[$contextInfo] = $this->accessor->getValue($state, $contextInfo);
        }
        if ($options['reference']) {
            $context['reference'] = $options['reference'];
        }
        $this->logger->log($options['level'], $options['message'], $context);

        $state->setOutput($state->getInput());
    }
public function execute(ProcessState $state)
    {
        $options = $this->getOptions($state);
        $context = [];
        foreach ($options['context'] as $contextInfo) {
            $context[$contextInfo] = $this->accessor->getValue($state, $contextInfo);
        }
        if ($options['reference']) {
            $context['reference'] = $options['reference'];
        }
        $this->logger->log($options['level'], $options['message'], $context);

        $state->setOutput($state->getInput());
    }
@param ProcessState $state

@throws \Symfony\Component\OptionsResolver\Exception\ExceptionInterface
@throws \Symfony\Component\PropertyAccess\Exception\AccessException
@throws \Symfony\Component\PropertyAccess\Exception\InvalidArgumentException
@throws \Symfony\Component\PropertyAccess\Exception\UnexpectedTypeException
@throws \Symfony\Component\Serializer\Exception\CircularReferenceException
@throws \Symfony\Component\Serializer\Exception\InvalidArgumentException
@throws \Symfony\Component\Serializer\Exception\LogicException