code: def create_logger(name, level='INFO'):
      
      formatter = ColorFormatter(LOG_FORMAT, DATE_FORMAT)
      if not isinstance(logging.getLevelName(level), int):
          level = 'INFO'
      handler = logging.StreamHandler()
      handler.setFormatter(formatter)
      logger = logging.getLogger(name)
      logger.setLevel(level)
      logger.addHandler(handler)
      return logger
docs: Creates a new ready-to-use logger.
  
      :param name: new logger's name
      :type name: str
      :param level: default logging level.
      :type level: :class:`str` or :class:`int`
      :return: new logger.
      :rtype: :class:`logging.Logger`