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 f
For slick 3.1.0, paste this in logback.xml
in your resources
directory:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
<encoder>
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n</pattern>
</encoder>
</appender>
<logger name="application" level="DEBUG"/>
<logger name="com.zaxxer.hikari" level="INFO"/>
<logger name="slick" level="INFO"/>
<root level="DEBUG">
<appender-ref ref="STDOUT"/>
</root>
</configuration>
In my case I had to add <logger name="slick" level="INFO"/>
to my log4j2.xml
file. I'm using Slick 3.0.3 with Spray 1.3.3 and Log4j 2.1