code: static void doRss(StaplerRequest req, StaplerResponse rsp, List<LogRecord> logs) throws IOException, ServletException {
          // filter log records based on the log level
          String level = req.getParameter("level");
          if(level!=null) {
              Level threshold = Level.parse(level);
              List<LogRecord> filtered = new ArrayList<>();
              for (LogRecord r : logs) {
                  if(r.getLevel().intValue() >= threshold.intValue())
                      filtered.add(r);
              }
              logs = filtered;
          }
  
          RSS.forwardToRss("Hudson log","", logs, new FeedAdapter<LogRecord>() {
              public String getEntryTitle(LogRecord entry) {
                  return entry.getMessage();
              }
  
              public String getEntryUrl(LogRecord entry) {
                  return "log";   // TODO: one URL for one log entry?
              }
  
              public String getEntryID(LogRecord entry) {
                  return String.valueOf(entry.getSequenceNumber());
              }
  
              public String getEntryDescription(LogRecord entry) {
                  return Functions.printLogRecord(entry);
              }
  
              public Calendar getEntryTimestamp(LogRecord entry) {
                  GregorianCalendar cal = new GregorianCalendar();
                  cal.setTimeInMillis(entry.getMillis());
                  return cal;
              }
  
              public String getEntryAuthor(LogRecord entry) {
                  return JenkinsLocationConfiguration.get().getAdminAddress();
              }
          },req,rsp);
      }
docs: /*package