Utils Module
- utils.utils.setup_logging(filename: str, log_level: str)[source]
Set up logging configuration.
Parameters
- filenamestr
The name of the file to which logs will be written.
- log_levelstr
The desired logging level, one of {‘DEBUG’, ‘INFO’, ‘WARNING’, ‘ERROR’, ‘CRITICAL’}.
Returns
None
Notes
The function configures the logging module to write logs to the specified file with the given level. If the provided log level is not recognized, it defaults to ‘INFO’.