(self, record)
Emit a record.

        Append the record. If shouldFlush() tells us to, call flush() to process
        the buffer.
Emit a record.
Emit a record .
def emit(self, record):
        """
        Emit a record.

        Append the record. If shouldFlush() tells us to, call flush() to process
        the buffer.
        """
        self.buffer.append(record)
        if self.shouldFlush(record):
            self.flush()
def emit ( self , record ) : self . buffer . append ( record ) if self . shouldFlush ( record ) : self . flush ( )