ml_grid.util.logger_setup ========================= .. py:module:: ml_grid.util.logger_setup Functions --------- .. autoapisummary:: ml_grid.util.logger_setup.setup_logger Module Contents --------------- .. py:function:: setup_logger(log_folder_path: str = '.') -> logging.Logger Sets up a logger that writes to a file and the console. This function configures a logger to save debug-level messages to a timestamped log file and info-level messages to the console. It also sets up a system trace to log file and line number for debugging purposes, and redirects stdout to the logger. :param log_folder_path: The directory where log files will be stored. Defaults to ".". :type log_folder_path: str, optional :returns: The configured logger instance. :rtype: logging.Logger