Logging flyway sql with Spring Boot

2019-06-17 16:17发布

Is there way to show Flyway migration steps in console, while starting 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.

1条回答
Rolldiameter
2楼-- · 2019-06-17 16:28

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"/>
查看更多
登录 后发表回答