code: def log(level, message):
      
      if redis_instance is None:
          __connect()
  
      if level not in __error_levels:
          raise InvalidErrorLevel('You have used an invalid error level. \
                  Please choose in: ' + ', '.join(__error_levels))
      if channel is None:
          raise NoChannelError('Please set a channel.')
      c = '{channel}.{level}'.format(channel=channel, level=level)
      redis_instance.publish(c, message)
docs: Publish `message` with the `level` the redis `channel`.
  
      :param level: the level of the message
      :param message: the message you want to log