code: private File retrieveFileFromLogsFolder(String index) {
          File[] logFiles = getLogsDirectory().listFiles(new LogFilesFilter());
          File fileToReturn = null;
          for (File eachLogFile : logFiles) {
              String fileName = eachLogFile.getName().split("\\Q.\\E")[0];
              if (fileName.endsWith(index)) {
                  fileToReturn = eachLogFile;
                  break;
              }
          }
          return fileToReturn;
      }
docs: Get the log files from the directory
  
  @param index
  @return A {@link File} that represent the file to read from current directory.