nxt.http

## Class GetLog

- java.lang.Object
- - nxt.http.APIServlet.APIRequestHandler
  - - nxt.http.GetLog

-     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:

  - count - The number of log messages to return

  Response parameters:

  - messages - An array of log messages

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    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

    - ### Methods inherited from class nxt.http.APIServlet.APIRequestHandler

      `getAPITags, getFileParameter, getParameters, isPassword, isTextArea, processRequest, requireFullClient, requirePost, startDbTransaction`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### processRequest

          protected org.json.simple.JSONStreamAware processRequest(javax.servlet.http.HttpServletRequest req)

      Process the GetLog API request
      Specified by:
        `processRequest` in class `APIServlet.APIRequestHandler`
      Parameters:
        `req` - API request
      Returns:
        API response

    - #### requirePassword

          protected boolean requirePassword()

      Require the administrator password
      Overrides:
        `requirePassword` in class `APIServlet.APIRequestHandler`
      Returns:
        TRUE if the admin password is required

    - #### allowRequiredBlockParameters

          protected boolean allowRequiredBlockParameters()

      Overrides:
        `allowRequiredBlockParameters` in class `APIServlet.APIRequestHandler`

    - #### requireBlockchain

          protected boolean requireBlockchain()

      Overrides:
        `requireBlockchain` in class `APIServlet.APIRequestHandler`