Coverage for ibllib/__init__.py: 89%
9 statements
« prev ^ index » next coverage.py v7.3.2, created at 2023-10-11 11:13 +0100
« prev ^ index » next coverage.py v7.3.2, created at 2023-10-11 11:13 +0100
1"""Library implementing the International Brain Laboratory data pipeline."""
2import logging
3import warnings
5__version__ = '2.26.1'
6warnings.filterwarnings('always', category=DeprecationWarning, module='ibllib')
8# if this becomes a full-blown library we should let the logging configuration to the discretion of the dev
9# who uses the library. However since it can also be provided as an app, the end-users should be provided
10# with an useful default logging in standard output without messing with the complex python logging system
11# -*- coding:utf-8 -*-
12USE_LOGGING = True
13#%(asctime)s,%(msecs)d
14if USE_LOGGING:
15 from iblutil.util import setup_logger
16 setup_logger(name='ibllib', level=logging.INFO)
17else:
18 # deactivate all log calls for use as a library
19 logging.getLogger('ibllib').addHandler(logging.NullHandler())