Skip to content

Commit 9c20267

Browse files
committed
Docs: Add note re debug logging; add OffsetAndMetadata/TopicPartition
1 parent c265811 commit 9c20267

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

README.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,3 +228,15 @@ testing, probing, and general experimentation. The protocol support is
228228
leveraged to enable a KafkaClient.check_version() method that
229229
probes a kafka broker and attempts to identify which version it is running
230230
(0.8.0 to 2.6+).
231+
232+
233+
Debugging
234+
*********
235+
236+
Use python's `logging` module to view internal operational events.
237+
See https://docs.python.org/3/howto/logging.html for overview / howto.
238+
239+
.. code-block:: python
240+
241+
import logging
242+
logging.basicConfig(level=logging.DEBUG)

docs/apidoc/OffsetAndMetadata.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. autoclass:: kafka.OffsetAndMetadata
2+
:members:

docs/apidoc/TopicPartition.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.. autoclass:: kafka.TopicPartition
2+
:members:

docs/index.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,18 @@ method that probes a kafka broker and
223223
attempts to identify which version it is running (0.8.0 to 2.6+).
224224

225225

226+
Debugging
227+
*********
228+
229+
Use python's `logging` module to view internal operational events.
230+
See https://docs.python.org/3/howto/logging.html for overview / howto.
231+
232+
.. code-block:: python
233+
234+
import logging
235+
logging.basicConfig(level=logging.DEBUG)
236+
237+
226238
.. toctree::
227239
:hidden:
228240
:maxdepth: 2

0 commit comments

Comments
 (0)