protected function createSyslogDriver(array $config): LoggerInterface
    {
        $handler = new SyslogHandler(
            $config['name'],
            $config['facility'] ?? \LOG_USER,
            self::parseLevel($config['level'] ?? 'debug')
        );
        $handler->setFormatter($this->getConfiguredLineFormatter());

        return new Monolog($this->parseChannel($config), [$handler]);
    }
protected function createSyslogDriver(array $config): LoggerInterface
    {
        $handler = new SyslogHandler(
            $config['name'],
            $config['facility'] ?? \LOG_USER,
            self::parseLevel($config['level'] ?? 'debug')
        );
        $handler->setFormatter($this->getConfiguredLineFormatter());

        return new Monolog($this->parseChannel($config), [$handler]);
    }
protected function createSyslogDriver ( array $ config ) : LoggerInterface { $ handler = new SyslogHandler ( $ config [ 'name' ] , $ config [ 'facility' ] ?? \ LOG_USER , self :: parseLevel ( $ config [ 'level' ] ?? 'debug' ) ) ; $ handler -> setFormatter ( $ this -> getConfiguredLineFormatter ( ) ) ; return new Monolog ( $ this -> parseChannel ( $ config ) , [ $ handler ] ) ; }
Create an instance of the syslog log driver.

@param array $config

@throws \InvalidArgumentException

@return \Psr\Log\LoggerInterface
Create an instance of the syslog log driver .