Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • Try by adding logging.level.org.hibernate.SQL=DEBUG logging.level.org.hibernate.type.descriptor.sql.BasicBinder=TRACE in the porperties file and see? Commented Jan 9, 2018 at 14:28
  • You said that log4j.logger.org.hibernate=INFO added some logging but log4j.logger.org.hibernate.SQL=DEBUG didn't. Did you try... log4j.logger.org.hibernate=DEBUG? Or is there a typo above? Commented Jan 9, 2018 at 16:01
  • @AhmedRaaj : Those properties must go in a Spring properties file (like application.properties). I don't have any, I'm not using Spring Boot. I tried to add log4j.logger.org.hibernate.type.descriptor.sql.BasicBinder=‌​TRACE to my log4j.properties file but as this logger's goal is to display binded parameters it had no effect. Commented Jan 9, 2018 at 19:08
  • 1
    @dimwittedanimal : No typo there :-). I mentioned log4j.logger.org.hibernate to point out the fact that it had an effect on loggings, though the other one had not (which I find weird). I tried to set DEBUG level to the former logger though and it displayed more information but still no queries (as it's not its job that was expected). Commented Jan 9, 2018 at 19:10