public class LogRecorder extends AbstractModelObject implements Saveable
LogRecorder
is only visible for administrators and system readers, and this access control happens at
Jenkins.getLog()
, the sole entry point for binding LogRecorder
to URL.LogRecorderManager
Modifier and Type | Class and Description |
---|---|
static class |
LogRecorder.ComputerLogInitializer |
static class |
LogRecorder.Target
Logger that this recorder monitors, and its log level.
|
Modifier and Type | Field and Description |
---|---|
static List<Level> |
LEVELS
Log levels that can be configured for
LogRecorder.Target . |
CopyOnWriteList<LogRecorder.Target> |
targets |
static com.thoughtworks.xstream.XStream |
XSTREAM
Thread-safe reusable
XStream . |
Constructor and Description |
---|
LogRecorder(String name) |
Modifier and Type | Method and Description |
---|---|
AutoCompletionCandidates |
doAutoCompleteLoggerName(String value) |
org.kohsuke.stapler.HttpResponse |
doClear() |
void |
doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
Accepts submission from the configuration page.
|
void |
doDoDelete(org.kohsuke.stapler.StaplerResponse rsp)
Deletes this recorder, then go back to the parent.
|
void |
doRss(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
RSS feed for log entries.
|
static Set<String> |
getAutoCompletionCandidates(List<String> loggerNamesList) |
String |
getDisplayName() |
List<LogRecord> |
getLogRecords()
Gets a view of the log records.
|
String |
getName() |
LogRecorderManager |
getParent() |
String |
getSearchUrl()
Returns the URL of this item relative to the parent
SearchItem . |
Map<Computer,List<LogRecord>> |
getSlaveLogRecords()
Gets a view of log records per agent matching this recorder.
|
void |
load()
Loads the settings from a file.
|
void |
save()
Save the settings to a file.
|
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public final CopyOnWriteList<LogRecorder.Target> targets
public static final com.thoughtworks.xstream.XStream XSTREAM
XStream
.public static List<Level> LEVELS
LogRecorder.Target
.public LogRecorder(String name)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static Set<String> getAutoCompletionCandidates(List<String> loggerNamesList)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public AutoCompletionCandidates doAutoCompleteLoggerName(@QueryParameter String value)
public String getDisplayName()
getDisplayName
in interface ModelObject
public String getSearchUrl()
SearchItem
SearchItem
.getSearchUrl
in interface SearchItem
public String getName()
public LogRecorderManager getParent()
@POST public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public org.kohsuke.stapler.HttpResponse doClear() throws IOException
IOException
public void load() throws IOException
IOException
public void save() throws IOException
save
in interface Saveable
IOException
- if the persistence failed.public void doDoDelete(org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
public void doRss(org.kohsuke.stapler.StaplerRequest req, org.kohsuke.stapler.StaplerResponse rsp) throws IOException, javax.servlet.ServletException
IOException
javax.servlet.ServletException
Copyright © 2004–2021. All rights reserved.