utils module

utils.clear_logs(config: dict)[source]

Clears the logs directory specified in the configuration dictionary.

Parameters:

config (dict) -- location of the logs directory

utils.create_logger(name: str, logs_folder: str) Logger[source]
Creates a logger that writes to a file in the specified logs folder. Uses the name parameter and a timestamp

to create the current the logger and returns it.

Parameters:
  • name (str) -- name of the logger object.

  • logs_folder (str) -- location of the logs folder where the log file will be created.

Returns:

logger object that writes to a file in the specified logs folder.

Return type:

logging.Logger