Parse the engine uri to determine where to store loggs

def _parse_engine(engine):
        """ Parse the engine uri to determine where to store loggs """
        engine = (engine or '').strip()
        backend, path = URI_RE.match(engine).groups()

        if backend not in SUPPORTED_BACKENDS:
            raise NotImplementedError(
                "Logg supports only {0} for now.".format(SUPPORTED_BACKENDS))
        log.debug('Found engine: {0}'.format(engine))
        return backend, path