Flush, if appropriately configured, set the target to None and lose the buffer.
(self)
| 1444 | self.buffer.clear() |
| 1445 | |
| 1446 | def close(self): |
| 1447 | """ |
| 1448 | Flush, if appropriately configured, set the target to None and lose the |
| 1449 | buffer. |
| 1450 | """ |
| 1451 | try: |
| 1452 | if self.flushOnClose: |
| 1453 | self.flush() |
| 1454 | finally: |
| 1455 | with self.lock: |
| 1456 | self.target = None |
| 1457 | BufferingHandler.close(self) |
| 1458 | |
| 1459 | |
| 1460 | class QueueHandler(logging.Handler): |