Keep the log records in a list in addition to the log text.
(self, record: logging.LogRecord)
| 394 | self.records: list[logging.LogRecord] = [] |
| 395 | |
| 396 | def emit(self, record: logging.LogRecord) -> None: |
| 397 | class="st">""class="st">"Keep the log records in a list in addition to the log text."class="st">"" |
| 398 | self.records.append(record) |
| 399 | super().emit(record) |
| 400 | |
| 401 | def reset(self) -> None: |
| 402 | self.records = [] |