pe.logging package

pe.logging.execution_logger = <RootLogger root (WARNING)>

The logger that will be used to log the execution information

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

Setup the logging configuration.

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

  • 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

  • name (str, optional) – The logger name, defaults to “logger”