Skip to content

Commit

Permalink
init loggingHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
strom-und-spiele committed Feb 15, 2022
1 parent 922477f commit 601f66a
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions influxdb_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,7 @@
from influxdb_client.client.users_api import UsersApi
from influxdb_client.client.write_api import WriteApi, WriteOptions
from influxdb_client.client.influxdb_client import InfluxDBClient
from influxdb_client.client.loggingHandler import InfluxLoggingHandler
from influxdb_client.client.write.point import Point

from influxdb_client.version import CLIENT_VERSION
Expand Down
7 changes: 7 additions & 0 deletions influxdb_client/client/loggingHandler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
"""
Use the influxdb_client together with python native logging
"""


class InfluxLoggingHandler:
pass
9 changes: 9 additions & 0 deletions tests/test_loggingHandler.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import unittest

from influxdb_client import InfluxLoggingHandler


class LoggingHandlerTest(unittest.TestCase):
def test_imports(self):
handler = InfluxLoggingHandler()
self.assertIsNotNone(handler)

0 comments on commit 601f66a

Please sign in to comment.