def record_research_log(profile, match_str, log_id, source_prof, notes_2add):
    """
    This function will introduce research logs information about the matching
    profile is a profile of pyGenealogy.common_profile type
    """
    all_items = profile.get_all_research_item()
    all_urls = {}
    for item in all_items:
        all_urls[item['url']] = item
    if source_prof in all_urls.keys():
        profile.update_research_item(log_id, source_prof, source=match_str,
            result=notes_2add)
    else:
        profile.set_research_item(log_id, repository=source_prof, source=
            match_str, result=notes_2add)
