@property
    def messages(self):
        self.acquire()
        try:
            captured = collections.defaultdict(list)
            for r in self._records:
                captured[r.levelno].append(r.getMessage())
            return captured
        finally:
            self.release()
Returns a dictionary with list of record messages at each level.
dataset/ETHPy150Open openstack/taskflow/taskflow/test.py/CapturingLoggingHandler.messages