A0__oN
A0__oN

Reputation: 9100

spring-data-mongo enable logging of query fired

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

Answers (1)

Just enable the DEBUG logging level for MongoTemplate on application.properties file...

logging.level.org.springframework.data.mongodb.core.MongoTemplate=DEBUG

Upvotes: 3

Related Questions