Package nxt.http

Class SetLogging


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:

  • logLevel - Specifies the log message level and defaults to INFO if not specified.
  • communicationLogging - Specifies peer message logging and defaults to no communication logging if not specified. The log level is a bit mask and more than one bit may be set. The bits are defined as follows:
    • 1 - Log network message names
    • 2 - Log network message details

Response parameters:

  • loggingUpdated - Set to 'true' if the logging was updated.

The following log levels can be specified:

  • DEBUG - Debug, informational, warning and error messages will be logged.
  • INFO - Informational, warning and error messages will be logged.
  • WARN - Warning and error messages will be logged.
  • ERROR - Error messages will be logged.