def getLogFile(): global dateStr, suffix rtn = os.path.join(configCommon.getLogDir(), dateStr) if suffix: rtn += "_" + suffix return rtn + ".log"