Create a new log handler.
(self)
| 328 | stream: StringIO |
| 329 | |
| 330 | def __init__(self) -> None: |
| 331 | """Create a new log handler.""" |
| 332 | super().__init__(StringIO()) |
| 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.""" |