Skip to content

Instantly share code, notes, and snippets.

@brunojppb
Created February 9, 2018 15:48
Show Gist options
  • Save brunojppb/b04a7ec496f16705ebc9face69244692 to your computer and use it in GitHub Desktop.
Save brunojppb/b04a7ec496f16705ebc9face69244692 to your computer and use it in GitHub Desktop.
How to debug slick generated SQL

To show the generated SQL using slick ad Play framework:

add this line to application.conf

logger.scala.slick.jdbc.JdbcBackend.statement=DEBUG

Add those lines to logback.xml

<logger name="logger.org.jdbcdslog.StatementLogger"  level="DEBUG" />
<logger name="slick.jdbc.JdbcBackend.statement"  level="DEBUG" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment