Class LogRecorder

    • Constructor Detail

      • LogRecorder

        @DataBoundConstructor
        public LogRecorder​(String name)
    • Method Detail

      • getAutoCompletionCandidates

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public static Set<String> getAutoCompletionCandidates​(List<String> loggerNamesList)
      • doAutoCompleteLoggerName

        @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
        public AutoCompletionCandidates doAutoCompleteLoggerName​(@QueryParameter
                                                                 String value)
      • getSearchUrl

        public String getSearchUrl()
        Description copied from interface: SearchItem
        Returns the URL of this item relative to the parent SearchItem.
        Specified by:
        getSearchUrl in interface SearchItem
        Returns:
        URL like "foo" or "foo/bar". The path can end with '/'. The path that starts with '/' will be interpreted as the absolute path (within the context path of Jenkins.)
      • getName

        public String getName()
      • doConfigSubmit

        @POST
        public void doConfigSubmit​(org.kohsuke.stapler.StaplerRequest req,
                                   org.kohsuke.stapler.StaplerResponse rsp)
                            throws IOException,
                                   javax.servlet.ServletException
        Accepts submission from the configuration page.
        Throws:
        IOException
        javax.servlet.ServletException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • doDoDelete

        public void doDoDelete​(org.kohsuke.stapler.StaplerResponse rsp)
                        throws IOException,
                               javax.servlet.ServletException
        Deletes this recorder, then go back to the parent.
        Throws:
        IOException
        javax.servlet.ServletException
      • doRss

        public void doRss​(org.kohsuke.stapler.StaplerRequest req,
                          org.kohsuke.stapler.StaplerResponse rsp)
                   throws IOException,
                          javax.servlet.ServletException
        RSS feed for log entries.
        Throws:
        IOException
        javax.servlet.ServletException
      • getLogRecords

        public List<LogRecord> getLogRecords()
        Gets a view of the log records.
      • getSlaveLogRecords

        public Map<Computer,​List<LogRecord>> getSlaveLogRecords()
        Gets a view of log records per agent matching this recorder.
        Returns:
        a map (sorted by display name) from computer to (nonempty) list of log records
        Since:
        1.519