You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,10 @@
1
1
## 1.29.0 [unreleased]
2
2
3
3
### Breaking Changes
4
-
1.[#433](https://github.com/influxdata/influxdb-client-python/pull/433): Rename `InvocableScripts` to `InvokableScripts`
4
+
1.[#433](https://github.com/influxdata/influxdb-client-python/pull/433): Rename `InvocableScripts` to `InvokableScripts`
5
+
6
+
### Documentation
7
+
1.[#434](https://github.com/influxdata/influxdb-client-python/pull/434): How the client uses [logging](https://docs.python.org/3/library/logging.html)
Copy file name to clipboardExpand all lines: README.rst
+45
Original file line number
Diff line number
Diff line change
@@ -84,6 +84,7 @@ InfluxDB 2.0 client features
84
84
- `Nanosecond precision`_
85
85
- `Delete data`_
86
86
- `Handling Errors`_
87
+
- `Logging`_
87
88
88
89
Installation
89
90
------------
@@ -1516,6 +1517,50 @@ Client automatically follows HTTP redirects. The default redirect policy is to f
1516
1517
1517
1518
.. marker-asyncio-end
1518
1519
1520
+
Logging
1521
+
^^^^^^^
1522
+
.. marker-logging-start
1523
+
1524
+
The client uses uses Python's `logging <https://docs.python.org/3/library/logging.html>`__ facility for logging the library activity. The following logger categories are exposed:
The default logging level is `warning` without configured logger output. You can use the standard logger interface to change the log level and handler:
1536
+
1537
+
.. code-block:: python
1538
+
1539
+
import logging
1540
+
import sys
1541
+
1542
+
from influxdb_client import InfluxDBClient
1543
+
1544
+
with InfluxDBClient(url="http://localhost:8086", token="my-token", org="my-org") as client:
0 commit comments