How can one enable logging on gradle project

117 views
Skip to first unread message

Mus Sheppard

unread,
Jun 4, 2017, 9:37:09 AM6/4/17
to Ebean ORM

Hi good folks of Ebean community!

Trying to make Ebean log queries it makes.

I've started new gradle project on intellij (with spark framework).

Ebean works, but silently.

At http://ebean-orm.github.io/docs/setup/logging it's stated that I should use those configs somewhere but where?

I tried including ch.qos.logback to gradle, and adding logback.xml to main/resources/
populating it with:

<configuration>
 <logger name="org.avaje" level="INFO" />
 <logger name="com.avaje" level="INFO" />
 <logger name="org.avaje.ebean.SQL" level="TRACE" />
 <logger name="org.avaje.ebean.TXN" level="TRACE" />
 <logger name="org.avaje.ebean.SUM" level="TRACE" />
</configuration>

but without success.
my graddle file regarding ebean looks like:
compile 'io.ebean:ebean:10.3.1'
compile
'org.slf4j:slf4j-simple:1.7.21'
compile
group: 'org.slf4j', name:'slf4j-api', version: '1.7.2'
compile
group: 'ch.qos.logback', name:'logback-classic', version: '1.0.9'
compile
group: 'ch.qos.logback', name:'logback-core', version: '1.0.9'



what should I do?
I'm couple of days with java so probably I missed something trivial

Roland Praml

unread,
Jun 5, 2017, 4:35:48 AM6/5/17
to Ebean ORM
The documentation i not yet updates in all places and the loggers have the old name. "com.avaje.ebean" was renamed to "io.ebean" with release 10.
So try to update the logger names first in your logback.xml to see if that solves the problem.

cheers
Roland

Reply all
Reply to author
Forward
0 new messages