tosi
tosi

Reputation: 1925

How can I log SQL statements executed by Flyway?

Does anyone know how I can log the sql output from Flyway?
It logs sql errors only, but I need to log information such as "table created", "table dropped" etc...

Upvotes: 13

Views: 9188

Answers (1)

Axel Fontaine
Axel Fontaine

Reputation: 35169

If you use the API you can see the statements being executed by setting the log level of com.googlecode.flyway.core.dbsupport.SqlScript to debug.

Upvotes: 7

Related Questions