.. method:: flush()
- You can override this to implement custom flushing behavior. This version
- just zaps the buffer to empty.
+ For a :class:`BufferingHandler` instance, flushing means that it sets the
+ buffer to an empty list. This method can be overwritten to implement more useful
+ flushing behavior.
.. method:: shouldFlush(record)
.. method:: flush()
- For a :class:`MemoryHandler`, flushing means just sending the buffered
+ For a :class:`MemoryHandler` instance, flushing means just sending the buffered
records to the target, if there is one. The buffer is also cleared when
- this happens. Override if you want different behavior.
+ buffered records are sent to the target. Override if you want different behavior.
.. method:: setTarget(target)
records to the target, if there is one. Override if you want
different behaviour.
- The record buffer is also cleared by this operation.
+ The record buffer is only cleared if a target has been set.
"""
self.acquire()
try: