| Hello Leandro Freitas, We already provide this feature through the org.hibernate.search.fulltext_query logger. Set its level to DEBUG or more verbose, and all search queries will be logged. If you want to log every request sent to the Elasticsearch cluster (including PUT/DELETE etc.), you can use the org.hibernate.search.elasticsearch.request logger (set its level to TRACE or more verbose). See here: https://docs.jboss.org/hibernate/search/5.8/reference/en-US/html_single/#elasticsearch-logging The org.hibernate.search.elasticsearch.request logger does not print the JSON content of requests though, mainly because it would be very, very verbose (you can have hundreds of documents in one request). I suppose we could add options to control that, or maybe show only path + query parameters at the DEBUG level, and the whole request at the TRACE level. And of course, there's the problem of formatting. We could add a configuration option for that, controlling formatting for both the org.hibernate.search.fulltext_query and org.hibernate.search.elasticsearch.request loggers. Leandro Freitas Any remarks about the above, before we start working on it? |