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;
    }