Documentation
Behavior of the MemoryHandler is slightly different as what the documentation is. Or, it has at least some ambiguity:
The function flush() does not clear the buffer when flushed without a target, but the docstring states: The record buffer is also cleared by this operation.
Since keeping the buffer full when flushing when no target is given (quite a corner case, but anyway) makes sense. Therefore suggested to adapt the documentation.
Linked PRs