code: public void createLogFileAndAddToMap(SessionId sessionId) throws IOException {
      File rcLogFile;
      // create logFile;
      rcLogFile = File.createTempFile(sessionId.toString(), ".rclog");
      rcLogFile.deleteOnExit();
      LogFile logFile = new LogFile(rcLogFile.getAbsolutePath());
      sessionToLogFileMap.put(sessionId, logFile);
    }
docs: This creates log file object which represents logs in file form. This opens ObjectOutputStream
  which is used to write logRecords to log file and opens a ObjectInputStream which is used to
  read logRecords from the file.
  
  @param sessionId session-id for the log file entry needs to be created.
  @throws IOException file i/o exception can occur because of a temp file created