hudson.logging
Class LogRecorderManager

java.lang.Object
  extended by hudson.model.AbstractModelObject
      extended by hudson.logging.LogRecorderManager
All Implemented Interfaces:
ModelObject, SearchableModelObject, SearchItem

public class LogRecorderManager
extends AbstractModelObject

Owner of LogRecorders, bound to "/log".

Author:
Kohsuke Kawaguchi

Field Summary
 Map<String,LogRecorder> logRecorders
          LogRecorders.
 
Constructor Summary
LogRecorderManager()
           
 
Method Summary
 org.kohsuke.stapler.HttpResponse doConfigLogger(String name, String level)
          Configure the logging level.
 org.kohsuke.stapler.HttpResponse doNewLogRecorder(String name)
          Creates a new log recorder.
 void doRss(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp)
          RSS feed for log entries.
 String getDisplayName()
           
 LogRecorder getDynamic(String token)
           
 LogRecorder getLogRecorder(String token)
           
 String getSearchUrl()
          Returns the URL of this item relative to the parent SearchItem.
static void init(Jenkins h)
           
 void load()
          Loads the configuration from disk.
 
Methods inherited from class hudson.model.AbstractModelObject
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logRecorders

public final transient Map<String,LogRecorder> logRecorders
LogRecorders.

Constructor Detail

LogRecorderManager

public LogRecorderManager()
Method Detail

getDisplayName

public String getDisplayName()

getSearchUrl

public String getSearchUrl()
Description copied from interface: SearchItem
Returns the URL of this item relative to the parent 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 Hudson.)

getDynamic

public LogRecorder getDynamic(String token)

getLogRecorder

public LogRecorder getLogRecorder(String token)

load

public void load()
          throws IOException
Loads the configuration from disk.

Throws:
IOException

doNewLogRecorder

public org.kohsuke.stapler.HttpResponse doNewLogRecorder(@QueryParameter
                                                         String name)
Creates a new log recorder.


doConfigLogger

public org.kohsuke.stapler.HttpResponse doConfigLogger(@QueryParameter
                                                       String name,
                                                       @QueryParameter
                                                       String level)
Configure the logging level.


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

init

@Initializer(before=PLUGINS_PREPARED)
public static void init(Jenkins h)
                 throws IOException
Throws:
IOException


Copyright © 2004-2013. All Rights Reserved.