I want to capture all query statement in logs, which are getting performed by methods get(), upsert(),insert() etc in Collection.class
I assume you are referring to those operations as exposed by spring-data-couchbase. There is no query statement for kv operations - get(), upsert(), insert(), replace(), remove(). They are executed directly by KeyValue operations of the same name. Logging of those operations is from the logger and level shown belown.
<logger name="org.springframework.data.couchbase.core" level="debug"/>
If you would like logging of the metrics, please open a feature request at Issues · spring-projects/spring-data-couchbase · GitHub.
An alternative option would be to use the Threshold Logging feature of the Couchbase Java SDK with the reporting threshold set to a very low value, such that every operation is logged.
Hi Michael,
I am using Couchbase Java SDK and performing operartions - get(), upsert(), insert(), replace(), remove().
I am new in Couchbase Java SDK, Could you pls elaborate about Threshold Logging feature?
Thanks!!
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.