File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -199,9 +199,13 @@ terminal::
199199 # asyncio
200200 eio = engineio.AsyncClient(logger=True)
201201
202- The ``logger `` argument can be set to ``True `` to output logs to ``stderr ``, or
203- to an object compatible with Python's ``logging `` package where the logs should
204- be emitted to. A value of ``False `` disables logging.
202+ The ``logger `` argument controls logging behavior:
203+
204+ * ``True ``: Enables log output to ``stderr `` at the ``INFO `` level.
205+ * ``False ``: Enables log output to ``stderr `` at the ``ERROR `` level. This is
206+ the default.
207+ * A ``logging.Logger `` instance: Uses the provided logger without additional
208+ configuration.
205209
206210Logging can help identify the cause of connection problems, unexpected
207211disconnections and other issues.
Original file line number Diff line number Diff line change @@ -350,9 +350,13 @@ terminal::
350350 # asyncio
351351 eio = engineio.AsyncServer(logger=True)
352352
353- The ``logger `` argument can be set to ``True `` to output logs to ``stderr ``, or
354- to an object compatible with Python's ``logging `` package where the logs should
355- be emitted to. A value of ``False `` disables logging.
353+ The ``logger `` argument controls logging behavior:
354+
355+ * ``True ``: Enables log output to ``stderr `` at the ``INFO `` level.
356+ * ``False ``: Enables log output to ``stderr `` at the ``ERROR `` level. This is
357+ the default.
358+ * A ``logging.Logger `` instance: Uses the provided logger without additional
359+ configuration.
356360
357361Logging can help identify the cause of connection problems, 400 responses,
358362bad performance and other issues.
You can’t perform that action at this time.
0 commit comments