dm_mac.utils module

Utility functions for this package.

dm_mac.utils.load_json_config(env_var: str, default_path: str) Any

Try to load a JSON config file.

dm_mac.utils.set_log_debug(lgr: Logger)

set logger level to DEBUG, and debug-level output format

dm_mac.utils.set_log_info(lgr: Logger)

set logger level to INFO

dm_mac.utils.set_log_level_format(lgr: Logger, level: int, fmt: str)

Set logger level and format.