Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging options for Slick

I'm createing a Play 2.1 app, in which I have decided to use Slick for database interaction.
However I can't find documentation about how to configure/enable logging for Slick.
Anyone knows this?

like image 958
Farmor Avatar asked Jan 22 '13 07:01

Farmor


1 Answers

Slick doesn't do much of any logging above DEBUG level. In application.conf if you add the line:

logger.scala.slick=DEBUG

you're going to get deluged with information from the query compiler.

You're probably just interested in the session information (Connection pool management, query strings, etc). In which case, just add

logger.scala.slick.session=DEBUG

to your Play application's application.conf

like image 70
moatra Avatar answered Oct 26 '22 23:10

moatra