(self, record)
| 35 | |
| 36 | class ListHandler(logging.Handler): |
| 37 | def emit(self, record): |
| 38 | # Format the log record and store it in the list |
| 39 | log_entry = self.format(record) |
| 40 | observer.add_log(log_entry) |
| 41 | |
| 42 | |
| 43 | def setup_logging(level = logging.DEBUG): |