import csv


def load_log(filename):
    """ Load the contents of a single log file.
    """
    time = []
    code = []
    mesg = []
    with open(filename, "r") as csvfile:
        reader = csv.reader(csvfile)
        for t, c, m in reader:
            time.append(float(t))
            code.append(int(c))
            mesg.append(m)
    # return the length of data along with the data
    return len(time), zip(time, code, mesg)