protected function instantiateBackend(string $class, array $options = [])
    {
        $backend = new $class($options);
        if (!($backend instanceof BackendInterface)) {
            throw new \Exception(sprintf('The log backend class "%s" does not implement the BackendInterface', htmlspecialchars($class)), 1515355501615);
        }

        return $backend;
    }
protected function instantiateBackend(string $class, array $options = [])
    {
        $backend = new $class($options);
        if (!($backend instanceof BackendInterface)) {
            throw new \Exception(sprintf('The log backend class "%s" does not implement the BackendInterface', htmlspecialchars($class)), 1515355501615);
        }

        return $backend;
    }
protected function instantiateBackend ( string $ class , array $ options = [ ] ) { $ backend = new $ class ( $ options ) ; if ( ! ( $ backend instanceof BackendInterface ) ) { throw new \ Exception ( sprintf ( 'The log backend class "%s" does not implement the BackendInterface' , htmlspecialchars ( $ class ) ) , 1515355501615 ) ; } return $ backend ; }
Instantiate a backend based on configuration.

@param string $class
@param array $options
@return BackendInterface
@throws \Exception
Instantiate a backend based on configuration .