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.
| 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, isPassword, isTextArea, processRequest, requireFullClient, startDbTransactionprotected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req)
processRequest in class APIServlet.APIRequestHandlerreq - API requestprotected boolean requirePassword()
requirePassword in class APIServlet.APIRequestHandlerprotected final boolean requirePost()
requirePost in class APIServlet.APIRequestHandlerprotected boolean allowRequiredBlockParameters()
allowRequiredBlockParameters in class APIServlet.APIRequestHandlerprotected boolean requireBlockchain()
requireBlockchain in class APIServlet.APIRequestHandler