demcompare.log_conf

Logconf demcompare: contains logging configuration

Module Contents

Functions

setup_logging([logconf_path, default_level])

Setup the logging configuration

add_log_file(out_dir)

Add dated file handler to the logger.

demcompare.log_conf.setup_logging(logconf_path='logging.json', default_level=logging.INFO)[source]

Setup the logging configuration If logconf_path is found, set the json logging configuration Else put default_level

Parameters:
  • logconf_path (string) – path to the configuration file

  • default_level (logging level) – default level

  • cfg (Dict) – input cfg

demcompare.log_conf.add_log_file(out_dir: str)[source]

Add dated file handler to the logger.

Parameters:

out_dir (str) – output directory in which the log file will be created

Returns:

None