Why ebean.properties doesn't work in play 2.4?

253 views
Skip to first unread message

Leo Hu

unread,
Jun 18, 2015, 3:51:04 AM6/18/15
to play-fr...@googlegroups.com
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)

Marcos Pereira

unread,
Jun 23, 2015, 5:31:13 PM6/23/15
to play-fr...@googlegroups.com
Can you share your logback.xml configuration? It could be a problem with it.

Best,


--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to play-framewor...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/play-framework/c66ac586-f393-484a-9c78-b53a9a2be938%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Leo Hu

unread,
Jun 24, 2015, 8:29:48 AM6/24/15
to play-fr...@googlegroups.com
Hi,

I just solved the problem, here is my answer in stackoverflow, http://stackoverflow.com/a/31021436/5039759

Thanks

在 2015年6月24日星期三 UTC+8上午5:31:13,Marcos Silva Pereira写道:

Rob Bygrave

unread,
Oct 7, 2015, 5:17:14 PM10/7/15
to play-framework

For future reference note that these properties below are not valid Ebean properties (have not been for some time).

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

For Ebean logging configuration refer to http://ebean-orm.github.io/docs/logging
Reply all
Reply to author
Forward
0 new messages