We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2390427 commit bfb07dfCopy full SHA for bfb07df
docs/index.rst
@@ -142,7 +142,9 @@ The Python bindings also provide some additional configuration properties:
142
provided ``logging.Handler`` instance.
143
To avoid spontaneous calls from non-Python threads the log messages
144
will only be forwarded when ``client.poll()`` or ``producer.flush()`` are called.
145
+ For example::
146
+
147
+ mylogger = logging.getLogger()
148
+ mylogger.addHandler(logging.StreamHandler())
149
+ producer = confluent_kafka.Producer({'bootstrap.servers': 'mybroker.com'}, logger=mylogger)
150
- mylogger = logging.getLogger()
- mylogger.addHandler(logging.StreamHandler())
- producer = confluent_kafka.Producer({'bootstrap.servers': 'mybroker.com'}, logger=mylogger)
0 commit comments