src/Viserio/Component/Log/LogManager.php
public function createDriver(array $config): LoggerInterface
    {
        try {
            $driver = parent::createDriver($config);
        } catch (ManagerInvalidArgumentException $exception) {
            $driver = $this->createEmergencyDriver();
            $driver->emergency(
                'Unable to create configured logger. Using emergency logger.',
                ['exception' => $exception]
            );
        }

        if ($driver instanceof Monolog) {
            $driver = new Logger($this->pushProcessorsToMonolog($config, $driver));
        }

        if ($this->eventManager !== null && \method_exists($driver, 'setEventManager')) {
            $driver->setEventManager($this->eventManager);
        }

        return $driver;
    }
public function createDriver(array $config): LoggerInterface
    {
        try {
            $driver = parent::createDriver($config);
        } catch (ManagerInvalidArgumentException $exception) {
            $driver = $this->createEmergencyDriver();
            $driver->emergency(
                'Unable to create configured logger. Using emergency logger.',
                ['exception' => $exception]
            );
        }

        if ($driver instanceof Monolog) {
            $driver = new Logger($this->pushProcessorsToMonolog($config, $driver));
        }

        if ($this->eventManager !== null && \method_exists($driver, 'setEventManager')) {
            $driver->setEventManager($this->eventManager);
        }

        return $driver;
    }
{@inheritdoc}