def logFromFile(logDir, inFile):
    #_logDir = makedirsIgnoreExisting(logDir)
    # new assumption: logDir exists (e.g., created by createLogDir)
    _logDir = logDir
    logBase = removeBaseAndExtension(inFile)
    log = createLogFile(_logDir, logBase)
    return(log)
creates a log file from an input filename
dataset/ETHPy150Open Mouse-Imaging-Centre/pydpiper/pydpiper/file_handling.py/logFromFile