pe.logging package

pe.logging.execution_logger = <Logger pe (WARNING)>

The logger that will be used to log the execution information

pe.logging.setup_logging(log_file=None, log_screen=True, datefmt='%m/%d/%Y %H:%M:%S %p', fmt='%(asctime)s [%(name)s] [%(levelname)-5.5s]  %(message)s', level=20)[source]

Setup the logging configuration.

Parameters:
  • log_file (str, optional) – The log file path, defaults to None

  • log_screen (bool, optional) – Whether to log to the screen, defaults to True

  • datefmt (str, optional) – The date format, defaults to “%m/%d/%Y %H:%M:%S %p”

  • fmt (str, optional) – The log format, defaults to “%(asctime)s [%(name)s] [%(levelname)-5.5s] %(message)s”

  • level (int, optional) – The log level, defaults to logging.INFO