Reputation: 9100
When we use JPA we have spring.jpa.show-sql=false
to enable logging of SQL statements.
How can enable logging of MongoDb queries on Spring Data JPA
Upvotes: 0
Views: 3232
Reputation: 31
Just enable the DEBUG logging level for MongoTemplate on application.properties file...
logging.level.org.springframework.data.mongodb.core.MongoTemplate=DEBUG
Upvotes: 3