@property
    def counts(self):
        self.acquire()
        try:
            captured = collections.defaultdict(int)
            for r in self._records:
                captured[r.levelno] += 1
            return captured
        finally:
            self.release()
Returns True if the given filepath is a valid watchable filetype.
dataset/ETHPy150Open openstack/taskflow/taskflow/test.py/CapturingLoggingHandler.counts--crossover with--dataset/ETHPy150Open jeffh/sniffer/sniffer/scanner/base.py/BaseScanner.is_valid_type