2

a similar question has been asked and answered here. The solution is to set logging level from org.springframework.data.couchbase.repository.query to DEBUG:

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

The difference in my case is that I'm using the reactive support and the bad boy above doesn't work. I also tried setting everything in org.springframework.data to DEBUG and still can't see any queries in the logs.

Mu guess is that there is something special about reactive repositories which I'm missing. Any ideas are more than welcome!

ideskov
  • 23
  • 2
  • Have you tried logback (the answer bellow the accepted one)? I should work for you – deniswsrosa Dec 16 '19 at 13:33
  • I believe logback is used by default in spring boot - [reference](https://docs.spring.io/spring-boot/docs/2.2.1.RELEASE/reference/htmlsingle/#boot-features-logging) `By default, if you use the “Starters”, Logback is used for logging. Appropriate Logback routing is also included to ensure that dependent libraries that use Java Util Logging, Commons Logging, Log4J, or SLF4J all work correctly` – ideskov Dec 17 '19 at 16:07

1 Answers1

1

For reactive couchbase repository

Add the following to application.yaml

logging:
  level:
    org.springframework.data.couchbase.core: TRACE

OR add the following to logback.xml

<logger name="org.springframework.data.couchbase.core" level="trace" />

And it will work from spring-data-couchbase:4.3.2

Reference

https://github.com/spring-projects/spring-data-couchbase/issues/1045

SANN3
  • 9,459
  • 6
  • 61
  • 97