def __iter__(self) -> typing.Generator[logging.LogRecord, None, None]: for x in self._records: yield x