Skip to main content

utils

Utility functions for the runner modules.

Module

Functions

def setup_loggers(    loggers: List[logging.Logger], name: Optional[str] = None,)> List[logging.Logger]:

Set up loggers with console and file handlers.

Creates a logfile in 'logs' directory with the current date and time and outputs all logs at the "DEBUG" level. Also outputs logs to stdout at the "INFO" level. A common scenario is to attach handlers only to the root logger, and to let propagation take care of the rest.

Returns List[logging.Logger]: updated logger(s)