configure_logging

lab_utils.custom_logging.configure_logging(config_file: str = '/home/docs/checkouts/readthedocs.org/user_builds/lab-utils/envs/v0.3.0/lib/python3.7/site-packages/lab_utils/conf/logging.ini', fallback: bool = False)[source]

Sets up the custom logger. Loads the configuration from config_file using the configparser library.

Parameters
  • config_file (str, optional) – Configuration file name, full path.

  • fallback (bool, optional) – If ‘True’ and the logger setup fails, fall back to the default Logger.

Raises

configparser.Error – Error while parsing the file, e.g. no file was found, a parameter is missing or it has an invalid value.