Close the handler. This version just flushes and chains to the parent class' close().
(self)
| 1359 | self.buffer.clear() |
| 1360 | |
| 1361 | def close(self): |
| 1362 | """ |
| 1363 | Close the handler. |
| 1364 | |
| 1365 | This version just flushes and chains to the parent class' close(). |
| 1366 | """ |
| 1367 | try: |
| 1368 | self.flush() |
| 1369 | finally: |
| 1370 | logging.Handler.close(self) |
| 1371 | |
| 1372 | class MemoryHandler(BufferingHandler): |
| 1373 | """ |