def emit(self, record):
        msg = self.format(record)
        self.buf.setdefault(record.levelno, [])
        self.buf[record.levelno].append(msg)
Handles emit calls from logging, stores the logged record in an internal list that is
dataset/ETHPy150Open Yelp/Testify/testify/utils/mock_logging.py/MockHandler.emit