Enable Hibernate SQL logging on runtime

Set a breakpoint somewhere. In the breakpoint, evaluate following expression in your IDE.

org.apache.log4j.Logger.getLogger("org.hibernate.SQL").setLevel(org.apache.log4j.Level.DEBUG)

comments powered by Disqus