Source code for drugex.logs

"""
__init__.py

Created by: Martin Sicho
On: 17.05.22, 9:53
"""
import logging
import sys

logger = None

if not logger:
    logger = logging.getLogger('drugex')
    logger.setLevel(logging.INFO)

[docs]def setLogger(log): setattr(sys.modules[__name__], 'drugex', log)