code: public static List<LogItem> getLogsForTag(String tag) {
      Queue<LogItem> logs = logsByTag.get(tag);
      return logs == null ? Collections.emptyList() : new ArrayList<>(logs);
    }
docs: Returns ordered list of all log items for a specific tag.
  
  @param tag The tag to get logs for
  @return The list of log items for the tag or an empty list if no logs for that tag exist.