ml_grid.pipeline.logs_project_folder

Classes

log_folder

Initializes the log folder and sets up basic logging.

Module Contents

class ml_grid.pipeline.logs_project_folder.log_folder(local_param_dict: Dict[str, Any], additional_naming: str | None, base_project_dir: str)[source]

Initializes the log folder and sets up basic logging.

This constructor generates a unique folder name by concatenating the values from the local_param_dict. It then creates this folder and configures a basic logger to write to a ‘log.log’ file inside it.

Note

This class re-configures the root logger on each instantiation, which may have unintended side effects in a larger application.

Parameters:
  • local_param_dict (Dict[str, Any]) – A dictionary of parameters for the current pipeline run.

  • additional_naming (Optional[str]) – An additional string to append to the folder name.

  • base_project_dir (str) – The root directory for the project.