def sync_with_handlers(self, handlers=()):
        if not handlers:
            return

        while self.__messages:
            record = self.__messages.pop(0)
            for handler in handlers:
                if handler.level > record.levelno:
                    # If the handler's level is higher than the log record one,
                    # it should not handle the log record
                    continue
                handler.handle(record)
Sync the stored log records to the provided log handlers.
dataset/ETHPy150Open saltstack/salt/salt/log/handlers/__init__.py/TemporaryLoggingHandler.sync_with_handlers