def amend_simple(line, filename, user, timestamp_length):
    """Given a line from a log file, insert its filename and return it"""
    return '{} - {} - {}{}'.format(line[:timestamp_length], filename, user,
        line[timestamp_length:])
