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?
相关问题
- Unusual use of the new keyword
- Get Runtime Type picked by implicit evidence
- What's the point of nonfinal singleton objects
- I want to trace logs using a Macro multi parameter
- PlayFramework: how to transform each element of a
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- how do I log requests and responses for debugging
- RDF libraries for Scala [closed]
- Why is my Dispatching on Actors scaled down in Akk
- How do you run cucumber with Scala 2.11 and sbt 0.
- how to set H2 primary key id to auto_increment?
- GRPC: make high-throughput client in Java/Scala
- Android Studio doesn't display logs by package
To print only select statements, in play-2.2.1 with slick 2.0.0, in application.conf have:
For PlayFramework 2.5.0 without Slick
Add to all your database configurations
Add to your logback.xml file:
All the statements will be logged.
Reference:
https://www.playframework.com/documentation/2.5.x/ScalaDatabase#How-to-configure-SQL-log-statement
For play with Slick 3.0, just use