gaps.config.init_logging_from_config_file#
- init_logging_from_config_file(config_file, background=False)[source]#
Init logging, taking care of legacy rex-style kwargs.
- Parameters:
config_file (path-like) – Path to a config file parsable as a dictionary which may or may not contain a “logging” key. If key not found, no further action is taken. If key is found, the value is expected to be a dictionary of keyword-argument pairs to
gaps.log.init_logger()
. rex-style keys (“log_level”, “log_file”, “log_format”) are allowed. The values of these inputs are used to initialize a gaps logger.background (bool, optional) – Optional flag to specify background job initialization. If
True
, then stream output is disabled. By default,False
.