cars_mesh.setup_logging

CARS-mesh logging module

Module Contents

Functions

setup_logging([logconf_path, default_level])

Setup the logging configuration

add_log_file(out_dir, command)

Add dated file handler to the logging.

cars_mesh.setup_logging.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

cars_mesh.setup_logging.add_log_file(out_dir, command)[source]

Add dated file handler to the logging.

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

  • command (str) – command name which will be part of the log file name