Close the handler. This version just flushes and chains to the parent class' close().
(self)
| 1379 | self.buffer.clear() |
| 1380 | |
| 1381 | def close(self): |
| 1382 | """ |
| 1383 | Close the handler. |
| 1384 | |
| 1385 | This version just flushes and chains to the parent class' close(). |
| 1386 | """ |
| 1387 | try: |
| 1388 | self.flush() |
| 1389 | finally: |
| 1390 | logging.Handler.close(self) |
| 1391 | |
| 1392 | class MemoryHandler(BufferingHandler): |
| 1393 | """ |