Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Logging Flyway sql with Spring Boot

Is there a way to show Flyway migration steps in the console, while starting a Spring Boot app? Migration is working correctly. I just do not see any log about it.

I have checked flyway properties, but there is nothing about it.

like image 899
hybaken Avatar asked Mar 16 '16 21:03

hybaken


1 Answers

you could add this in your logback.xml file

<logger name="org.flywaydb" level="DEBUG"/>

or this to only get the sql scripts :

<logger name="org.flywaydb.core.internal.dbsupport.SqlScript" level="DEBUG"/>
like image 161
maximede Avatar answered Oct 14 '22 02:10

maximede