import re


def remove_log_text(text):
    
    """ Remove log information from the given string. """
    
    # The pattern basically searches for anything following ".cpp:[0-9]{1-4}] "
    pattern = "(?:(?<=\.cpp:[0-9]] )|(?<=\.cpp:[0-9][0-9]] )|(?<=\.cpp:[0-9][0-9][0-9]] )|(?<=\.cpp:[0-9][0-9][0-9][0-9]] )).+"
    match = re.search(pattern, text)
    return text if match == None else match.group(0)