(self)
For a MemoryHandler, flushing means just sending the buffered
        records to the target, if there is one. Override if you want
        different behaviour.

        The record buffer is also cleared by this operation.
For a MemoryHandler, flushing means just sending the buffered
        records to the target, if there is one. Override if you want
        different behaviour.
For a MemoryHandler flushing means just sending the buffered records to the target if there is one . Override if you want different behaviour .
def flush(self):
        """
        For a MemoryHandler, flushing means just sending the buffered
        records to the target, if there is one. Override if you want
        different behaviour.

        The record buffer is also cleared by this operation.
        """
        self.acquire()
        try:
            if self.target:
                for record in self.buffer:
                    self.target.handle(record)
                self.buffer.clear()
        finally:
            self.release()
def flush ( self ) : self . acquire ( ) try : if self . target : for record in self . buffer : self . target . handle ( record ) self . buffer . clear ( ) finally : self . release ( )