code: def _check_pos(self, level, *tokens):
          
          for record in self.records:
              if all(record.levelno == level and token in record.message for token in tokens):
                  return
  
          # didn't exit, all tokens are not present in the same record
          level_name = logging.getLevelName(level)
          msgs = ["Tokens {} not found in {}, all was logged is...".format(tokens, level_name)]
          for record in self.records:
              msgs.append("    {:9s} {!r}".format(record.levelname, record.message))
          self.test_instance.fail("\n".join(msgs))
docs: Check if the different tokens were logged in one record, assert by level.