|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.model.AbstractModelObject
hudson.logging.LogRecorder
public class LogRecorder
Records a selected set of logs so that the system administrator can diagnose a specific aspect of the system. TODO: still a work in progress.
LogRecorder is only visible for administrators, and this access control happens at
Jenkins.getLog(), the sole entry point for binding LogRecorder to URL.
LogRecorderManager| Nested Class Summary | |
|---|---|
static class |
LogRecorder.Target
Logger that this recorder monitors, and its log level. |
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface hudson.model.Saveable |
|---|
NOOP |
| Constructor Summary | |
|---|---|
LogRecorder(String name)
|
|
| Method Summary | |
|---|---|
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. |
void |
load()
Loads the settings from a file. |
void |
save()
Save the settings to a file. |
| 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 |
|---|
public final CopyOnWriteList<LogRecorder.Target> targets
public static final com.thoughtworks.xstream.XStream XSTREAM
XStream.
public static List<Level> LEVELS
LogRecorder.Target.
| Constructor Detail |
|---|
public LogRecorder(String name)
| Method Detail |
|---|
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
IOException
javax.servlet.ServletException
public void load()
throws IOException
IOException
public 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
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.ServletExceptionpublic List<LogRecord> getLogRecords()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||