Reset the list of log records and the captured log text.
(self)
| 435 | return [r.getMessage() for r in self.records] |
| 436 | |
| 437 | def clear(self) -> None: |
| 438 | """Reset the list of log records and the captured log text.""" |
| 439 | self.handler.reset() |
| 440 | |
| 441 | def set_level(self, level: Union[int, str], logger: Optional[str] = None) -> None: |
| 442 | """Set the level of a logger for the duration of a test. |