code: public List<LogRecord> getLogRecords(SessionId sessionId) throws IOException {
      LogFile logFile = sessionToLogFileMap.get(sessionId);
      if (logFile == null) {
        return new ArrayList<>();
      }
  
      List<LogRecord> logRecords = new ArrayList<>();
      try {
        logFile.openLogReader();
        ObjectInputStream logObjInStream = logFile.getLogReader();
        LogRecord tmpLogRecord;
        while (null != (tmpLogRecord = (LogRecord) logObjInStream
            .readObject())) {
          logRecords.add(tmpLogRecord);
        }
      } catch (IOException | ClassNotFoundException ex) {
        logFile.closeLogReader();
        return logRecords;
      }
      logFile.closeLogReader();
      return logRecords;
    }
docs: This returns the log records storied in the corresponding log file. This does *NOT* clear the
  log records in the file.
  
  @param sessionId session-id for which the file logs needs to be returned.
  @return A List of LogRecord objects, which can be <i>null</i>.
  @throws IOException IO exception can occur with reading the log file