Keep the log records in a list in addition to the log text.
(self, record: logging.LogRecord)
| 333 | self.records: List[logging.LogRecord] = [] |
| 334 | |
| 335 | def emit(self, record: logging.LogRecord) -> None: |
| 336 | """Keep the log records in a list in addition to the log text.""" |
| 337 | self.records.append(record) |
| 338 | super().emit(record) |
| 339 | |
| 340 | def reset(self) -> None: |
| 341 | self.records = [] |