Logging flyway sql with Spring Boot

对着背影说爱祢 提交于 2019-12-08 15:44:41

问题


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:


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"/>


来源:https://stackoverflow.com/questions/36047610/logging-flyway-sql-with-spring-boot

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!