title: how can i use KafkaLoggingHandler to connect multiple brokers?
body: <p>I've written KafkaLoggingHandler as shown below , how can i use KafkaLoggingHandler to connect multiple brokers?</p>
  <pre><code>kafka_log_handler = KafkaLoggingHandler(
       local_kafka-1_1:9092, # ex:how can i add local_kafka-2_1??
       ...
       ...
  )
  </code></pre>
  <p>This is my docker-compose.yml , i create two clusters by kafka images.</p>
  <pre><code>version: '2'
  services:
    zookeeper:
      image: wurstmeister/zookeeper
      ports:
        - &quot;2181:2181&quot;
    kafka-1:
      image: wurstmeister/kafka
      ports:
        - &quot;9095:9092&quot;
      environment:
        KAFKA_ADVERTISED_HOST_NAME: kafka1.test.local
        KAFKA_ADVERTISED_PORT: 9095
        KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
        KAFKA_LOG_DIRS: /kafka/logs
        KAFKA_BROKER_ID: 500
        KAFKA_offsets_topic_replication_factor: 3
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
        - ${KAFKA_DATA}/500:/kafka
  
    kafka-2:
      image: wurstmeister/kafka
      ports:
        - &quot;9096:9092&quot;
      environment:
        KAFKA_ADVERTISED_HOST_NAME: kafka2.test.local
        KAFKA_ADVERTISED_PORT: 9096
        KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
        KAFKA_LOG_DIRS: /kafka/logs
        KAFKA_BROKER_ID: 501
        KAFKA_offsets_topic_replication_factor: 3
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
        - ${KAFKA_DATA}/501:/kafka
  </code></pre>