使用Spring Boot记录Flyway SQL [英] Logging flyway sql with Spring Boot

查看:104
本文介绍了使用Spring Boot记录Flyway SQL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

启动Spring Boot应用程序时,是否可以在控制台中显示Flyway迁移步骤?迁移工作正常.我只是看不到任何日志.

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.

推荐答案

您可以将其添加到logback.xml文件中

you could add this in your logback.xml file

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

或仅获取sql脚本:

<logger name="org.flywaydb.core.internal.dbsupport.SqlScript" level="DEBUG"/>

这篇关于使用Spring Boot记录Flyway SQL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆