forked from couchbase/couchbase-python-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path__init__.py
27 lines (19 loc) · 791 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import couchbase_core._bootstrap
import couchbase_core._logutil
couchbase_core._bootstrap.do_init()
def enable_logging():
"""
Enables integration with Python's `logging` module.
This function enables the C library's logging to be propagated to
the Python standard `logging` module.
Calling this function affects any :class:`~couchbase_core.client.Client` objects created
afterwards (but not before). Note that currently this will also
override any ``LCB_LOGLEVEL`` directive inside the environment as
well.
The "root" couchbase_core logger is ``couchbase``.
"""
import couchbase_core._logutil
couchbase_core._logutil.configure(True)
def disable_logging():
import couchbase_core._logutil
couchbase_core._logutil.configure(False)