See Hibernates Query Parameters When Using Logback

I want to see the actual parameters of my SQL queries when using Hibernate. I add this to mine logback.xml

to view queries (with question marks):

<logger name="org.hibernate.SQL" level="DEBUG" />

      

I read about setting org.hibernate.type

- TRACE

to see the options. I tried it but didn't do anything. Please note that I am using Logback as my logging system, not Log4j. I suspect this is the answer.

Is there any special configuration needed or possible, or do I need to resort to log4jdbc ?

+3


source to share


1 answer


I seem to need to resort to log4jdbc and it turns out to be pretty painless.



0


source







All Articles