code: public String retrieveLogMessages(HttpRequest httpRequest) {
          HttpResponse httpResponse = sendRequest(
              request()
                  .withMethod("PUT")
                  .withPath(calculatePath("retrieve"))
                  .withQueryStringParameter("type", RetrieveType.LOGS.name())
                  .withBody(httpRequest != null ? httpRequestSerializer.serialize(httpRequest) : "", StandardCharsets.UTF_8)
          );
          return httpResponse.getBodyAsString();
      }
docs: Retrieve the logs associated to a specific requests, this shows all logs for expectation matching, verification, clearing, etc
  
  @param httpRequest the http request that is matched against when deciding whether to return each request, use null for the parameter to retrieve for all requests
  @return all log messages recorded by the MockServer when creating expectations, matching expectations, performing verification, clearing logs, etc