biotransformers.utils.logger
Contents
biotransformers.utils.logger¶
This module build a general logger module
Module Contents¶
Functions¶
|
Configure the logger with formatter and handlers. |
- biotransformers.utils.logger.logger(module_name: str) → logging.Logger¶
Configure the logger with formatter and handlers.
The log level depends on the environment variable BIO_LOG_LEVEL.
0: NOTSET, will be set to DEBUG
1: DEBUG
2: INFO (default)
3: WARNING
4: ERROR
5: CRITICAL
https://docs.python.org/3/library/logging.html#levels
- Parameters
module_name (str) – module name
- Returns
instantiate logger object
- Return type
[Logger]