I used ebean in my project, and I want to show sql with ebean, however,
ebean.ddl.generate=true
ebean.ddl.run=true
ebean.debug.sql=true
ebean.debug.lazyload=false
ebean.loggingToJavaLogger=true
ebean.logging=all
ebean.logging.logfilesharing=all
ebean.logging.directory=/logs
ebean.logging.iud=sql
ebean.logging.query=sql
ebean.logging.sqlquery=sql
ebean.logging.txnCommit=none
the config doesn't work at all.
And I also configured db.***.logSql = true
in application.conf and <logger name="logger.org.jdbcdslog.StatementLogger" level="INFO"/>
in logback.xml (jdbcdslog.jar has been downloaded)
Due to play2.4 has deprecated the log config in
application.conf
, we need to config in thelogback.xml
with<logger name="org.avaje.ebean.SQL" level="TRACE"/>
, thats enough.