How to enable Hibernate SQL tracing in Dropwizard?

2,551 views
Skip to first unread message

Joe Ernst

unread,
Dec 3, 2013, 1:00:38 AM12/3/13
to dropwiz...@googlegroups.com
I'm using the following lines in my .yml file (in the database section) with no luck:

properties:
  hibernate.show_sql: true

I've tried several other permutations but I can't find any clear documentation on this, and none of the examples seem to help.

Matt Brown

unread,
Dec 3, 2013, 2:36:46 PM12/3/13
to dropwiz...@googlegroups.com
I haven't tried it with Dropwizard, but you usually need to set the "org.hibernate.SQL" logger to DEBUG.

Carlo Barbara

unread,
Dec 3, 2013, 2:40:35 PM12/3/13
to dropwiz...@googlegroups.com
Whenever I need to get info about hibernate, I change the logging configuration for the below loggers

# Other useful loggers for hibernate
#        org.hibernate.SQL: TRACE
#        org.hibernate.type: TRACE


--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Graham O'Regan

unread,
Dec 3, 2013, 3:53:28 PM12/3/13
to dropwiz...@googlegroups.com
@Joe that looks correct, just checked in a 0.6.2 app, can you share your full config?
Reply all
Reply to author
Forward
0 new messages