GetLogCommand : added isFileProcessed, now GetLogCommand does not processed the same file over and over again