code: def emit(self, record):
          
          try:
              self.redis_client.publish(self.channel, self.format(record))
          except redis.RedisError:
              pass
docs: Publish record to redis logging channel