logging - Play 2.4 - Display Ebeans SQL statement in logs -
how display sql statements in log ? i'm using ebeans , fails insert reasons can't see what's problem.
i tried edit config to:
db.default.logstatements=true
and add logback.xml
<logger name="com.jolbox" level="debug" />
to follow answers found online, doesn't seem work 2.4…
logging has changed play 2.4. starting now, display sql statements in console, add following line conf/logback.xml file:
<logger name="org.avaje.ebean.sql" level="trace" />
it should work fine.
Comments
Post a Comment