spring-data-jpaspring-datacouchbasesql++

How to log Spring-data queries to a Couchbase Database


In my Spring-Boot app we have a Spring-Data repository connection to the Couchbase server.

I know that when connecting to SQL server, one can see the actual queries sent to the DB by adding to the property file line such as this one (As mentioned here):

logging.level.org.hibernate.SQL=DEBUG

What should be the way to do it when using Couchbase?


Solution

  • Following deniswasrosa's answer I was able to see the queries just by adding this to the yml file:

    logging:
       level:  
         org.springframework.data.couchbase.repository.query: DEBUG
    

    I had no need to add the dependency.