public final class GetLog extends APIServlet.APIRequestHandler
The GetLog API will return log messages from the ring buffer maintained by the MemoryHandler log handler. The most recent 'count' messages will be returned. All log messages in the ring buffer will be returned if 'count' is omitted.
Request parameters:
Response parameters:
DESCRIPTION_FIELD, MESSAGE_FIELD, NAME_FIELD
Modifier and Type | Method and Description |
---|---|
protected boolean |
allowRequiredBlockParameters() |
protected org.json.simple.JSONStreamAware |
processRequest(javax.servlet.http.HttpServletRequest req)
Process the GetLog API request
|
protected boolean |
requireBlockchain() |
protected boolean |
requirePassword()
Require the administrator password
|
getAPITags, getFileParameter, getParameters, processRequest, requireFullClient, requirePost, startDbTransaction
protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req)
processRequest
in class APIServlet.APIRequestHandler
req
- API requestprotected boolean requirePassword()
requirePassword
in class APIServlet.APIRequestHandler
protected boolean allowRequiredBlockParameters()
allowRequiredBlockParameters
in class APIServlet.APIRequestHandler
protected boolean requireBlockchain()
requireBlockchain
in class APIServlet.APIRequestHandler