logger_utility module¶ logger_utility.cleanup_old_logs(log_directory: str, max_logs: int = 10) → None[source]¶ Keep only the 10 most recent log files in the directory. logger_utility.rich_formatter(record: Dict[str, Any]) → str[source]¶ Rich formatter for loguru logger logger_utility.setup_logger() → None[source]¶ Setup the logger configuration for the application