'Saves the `__dict__` of the record in the `buffer` attribute,
and the formatted records in the `formatted` attribute.
:param record: The record to emit.'

def emit(self, record):

    self.formatted.append(self.format(record))
    self.buffer.append(record.__dict__)
