public class SetLogging extends APIServlet.APIRequestHandler
The SetLogging API will set the NRS log level for all log messages. It will also set the communication events that are logged.
Request parameters:
Response parameters:
The following log levels can be specified:
The following communication events can be specified. This is a bit mask so multiple events can be enabled at the same time. The log level must be DEBUG or INFO for communication events to be logged.
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 SetLogging API request
|
protected boolean |
requireBlockchain() |
protected boolean |
requirePassword()
Require the administrator password
|
protected boolean |
requirePost() |
getAPITags, getFileParameter, getParameters, processRequest, requireFullClient, 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 final boolean requirePost()
requirePost
in class APIServlet.APIRequestHandler
protected boolean allowRequiredBlockParameters()
allowRequiredBlockParameters
in class APIServlet.APIRequestHandler
protected boolean requireBlockchain()
requireBlockchain
in class APIServlet.APIRequestHandler