code: public synchronized SessionLogs getAllLogsForSession(SessionId sessionId) {
      SessionLogs sessionLogs = new SessionLogs();
      if (perSessionDriverEntries.containsKey(sessionId)) {
        Map<String, LogEntries> typeToEntriesMap = perSessionDriverEntries.get(sessionId);
        for (String logType : typeToEntriesMap.keySet()) {
          sessionLogs.addLog(logType, typeToEntriesMap.get(logType));
        }
        perSessionDriverEntries.remove(sessionId);
      }
      return sessionLogs;
    }
docs: Gets all logs for a session.
  
  @param sessionId The id of the session.
  @return The logs for the session, ordered after log types in a session logs object.