def METHOD_NAME(
    self,
    pattern: str = "",
    types: type[Any] | tuple[type[Any], ...] = Exception,
    log_level: int = logging.ERROR,
    del_log_records: bool = True,
) -> list[BaseException]:
    """Return a list of logged exception matching the given criteria
    Args:
        log_level: The level of log to check
        exclude_exc_types: Any exception types to ignore
        del_log_records: Whether to delete the log records for yielded exceptions
    """
    return METHOD_NAME(
        self.log_records,
        pattern,
        types,
        log_level,
        del_log_records,
    )