I would like to make sure that all my evolution files are properly run (by my CI agent, which seems to have trouble reading more than one), by logging something like "Applying evolution file 3.sql", or even the whole SQL code that is run to apply the evolutions.
How can make that information appear in the console logs?
I am using play-slick (the loggers might be different?). I tried adding this to the # --- !UPS
section
SELECT 'Applying evolution 3.sql' as '';
and also in "application.conf":
slick.dbs.default.db.logSql = true
and different kinds of things in "logback.xml", without success (I could print all my DAO queries, but not the evolutions).
This is the relevant part of my "logback.xml". The Slick one logs only my DAO's queries. The three "jdbcdslog" do nothing, and the Hikari one logs only connections. I have the "play.api.db.evolutions" logger set to DEBUG
as in this answer, but it has no effect either.
<!-- Show SQL -->
<logger name="com.zaxxer.hikari" level="OFF">
<appender-ref ref="STDOUT" />
</logger>
<logger name="org.jdbcdslog.ConnectionLogger" level="DEBUG" />
<logger name="org.jdbcdslog.StatementLogger" level="DEBUG" />
<logger name="org.jdbcdslog.ResultSetLogger" level="DEBUG" />
<!-- Slick -->
<logger name="slick.jdbc.JdbcBackend.statement" level="DEBUG" />
<!-- Evolutions -->
<logger name="play.api.db.evolutions" level="DEBUG" />