Package hudson.logging
Class LogRecorderManager
java.lang.Object
hudson.model.AbstractModelObject
hudson.logging.LogRecorderManager
- All Implemented Interfaces:
- ModelObject,- SearchableModelObject,- SearchItem,- ModelObjectWithChildren,- org.kohsuke.stapler.StaplerProxy
public class LogRecorderManager
extends AbstractModelObject
implements ModelObjectWithChildren, org.kohsuke.stapler.StaplerProxy
Owner of 
LogRecorders, bound to "/log".- Author:
- Kohsuke Kawaguchi
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal Map<String, LogRecorder> Deprecated.static booleanEscape hatch for StaplerProxy-based access control
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiondoCheckNewName(String name) doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) Generates the context menu to list up all the children.org.kohsuke.stapler.HttpResponsedoConfigLogger(String name, String level) Configure the logging level.org.kohsuke.stapler.HttpResponsedoNewLogRecorder(String name) Creates a new log recorder.voiddoRss(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) RSS feed for log entries.getDynamic(String token) getLogRecorder(String token) Returns the URL of this item relative to the parentSearchItem.static voidvoidload()Loads the configuration from disk.voidsetRecorders(List<LogRecorder> recorders) Methods inherited from class hudson.model.AbstractModelObjectgetSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError, sendError, sendError, sendErrorMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jenkins.model.ModelObjectWithChildrendoChildrenContextMenuMethods inherited from interface hudson.search.SearchItemgetSearchGroup, getSearchIcon
- 
Field Details- 
logRecorders@Deprecated @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) @RestrictedSince("2.323") public final transient Map<String,LogRecorder> logRecordersDeprecated.usegetRecorders()insteadLogRecorders keyed by their LogRecorder.getName() name}.
- 
SKIP_PERMISSION_CHECK@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public static boolean SKIP_PERMISSION_CHECKEscape hatch for StaplerProxy-based access control
 
- 
- 
Constructor Details- 
LogRecorderManager@DataBoundConstructor public LogRecorderManager()
 
- 
- 
Method Details- 
getRecorders
- 
setRecorders
- 
getDisplayName- Specified by:
- getDisplayNamein interface- ModelObject
 
- 
getSearchUrlDescription copied from interface:SearchItemReturns the URL of this item relative to the parentSearchItem.- Specified by:
- getSearchUrlin 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.)
 
- 
getDynamic
- 
getLogRecorder
- 
loadLoads the configuration from disk.- Throws:
- IOException
 
- 
doNewLogRecorderCreates a new log recorder.
- 
doCheckNewName@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public FormValidation doCheckNewName(@QueryParameter String name) 
- 
doChildrenContextMenupublic ModelObjectWithContextMenu.ContextMenu doChildrenContextMenu(org.kohsuke.stapler.StaplerRequest2 request, org.kohsuke.stapler.StaplerResponse2 response) throws Exception Description copied from interface:ModelObjectWithChildrenGenerates the context menu to list up all the children.- Specified by:
- doChildrenContextMenuin interface- ModelObjectWithChildren
- Throws:
- Exception
 
- 
doConfigLoggerpublic org.kohsuke.stapler.HttpResponse doConfigLogger(@QueryParameter String name, @QueryParameter String level) Configure the logging level.
- 
doRsspublic void doRss(org.kohsuke.stapler.StaplerRequest2 req, org.kohsuke.stapler.StaplerResponse2 rsp) throws IOException, jakarta.servlet.ServletException RSS feed for log entries.- Throws:
- IOException
- jakarta.servlet.ServletException
 
- 
init- Throws:
- IOException
 
- 
getTarget- Specified by:
- getTargetin interface- org.kohsuke.stapler.StaplerProxy
 
 
- 
getRecorders()instead