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

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -