class logging.handlers.MemoryHandler(capacity, flushLevel=ERROR, target=None)
Returns a new instance of the MemoryHandler class. The instance is initialized with a buffer size of capacity. If flushLevel is not specified, ERROR is used. If no target is specified, the target will need to be set using setTarget() before this handler does anything useful.
close()
Calls flush(), sets the target to None and clears the buffer.
flush()
For a MemoryHandler, flushing means just sending the bu