Logging

edit

Whilst developing with Elasticsearch using NEST, it can be extremely valuable to see the requests that NEST generates and sends to Elasticsearch, as well as the responses returned.

There are a couple of popular ways of capturing this information

In addition to logging requests and responses, Elasticsearch 5.0+ also sends back warning headers in the response, to notify you if you are using a feature that is marked as deprecated.