ml_grid.util.logger_setup
Functions
|
Sets up a logger that writes to a file and the console. |
Module Contents
- ml_grid.util.logger_setup.setup_logger(log_folder_path: str = '.') logging.Logger [source]
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.
- Parameters:
log_folder_path (str, optional) – The directory where log files will be stored. Defaults to “.”.
- Returns:
The configured logger instance.
- Return type: