def reader(path):

    """ Helpful generator to read a log file. 

    Arguments:
    ----------
    path = str or Path-like
        The absolute path to the log file.
    """

    try:
        with open(path, 'r') as _file_:
            for line in _file_:
                yield line
    except IOError:
        return None