public class LogRecorder extends AbstractModelObject implements Saveable
LogRecorder is only visible for administrators, 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.
|
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 slave 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, sendErrorpublic 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 AutoCompletionCandidates doAutoCompleteLoggerName(@QueryParameter String value)
public String getDisplayName()
getDisplayName in interface ModelObjectpublic String getSearchUrl()
SearchItemSearchItem.getSearchUrl in interface SearchItempublic String getName()
public LogRecorderManager getParent()
public void doConfigSubmit(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic org.kohsuke.stapler.HttpResponse doClear()
throws IOException
IOExceptionpublic void load()
throws IOException
IOExceptionpublic void save()
throws IOException
save in interface SaveableIOException - if the persistence failed.public void doDoDelete(org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic void doRss(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionCopyright © 2019. All rights reserved.