code: def setup_logger(log=None, level='INFO'):
      
      if not log:
          log = logging.getLogger()
      if not log.handlers:
          channel = logging.StreamHandler()
          channel.setFormatter(DebugLogFormatter())
  
          log.setLevel(level)
          log.addHandler(channel)
  
          # setup styling for repo loggers
          repo_logger = logging.getLogger('libvcs')
          channel = logging.StreamHandler()
          channel.setFormatter(RepoLogFormatter())
          channel.addFilter(RepoFilter())
          repo_logger.setLevel(level)
          repo_logger.addHandler(channel)
docs: Setup logging for CLI use.
  
      :param log: instance of logger
      :type log: :py:class:`Logger`