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...
Asked
Active
Viewed 8,693 times
1 Answers
7
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
.

Youcef LAIDANI
- 55,661
- 15
- 90
- 140

Axel Fontaine
- 34,542
- 16
- 106
- 137
-
4by adding -X on command line or am i missing something here? I can see on the SQLScript the debug mode but i am not sure how to switch it on when running it. – tosi Jul 04 '13 at 15:30
-
1Correct. -X will also output this info (and a lot more) – Axel Fontaine Jul 04 '13 at 17:21
-
2The -X command line switch works when using the maven plugin, too. – Carl G Oct 16 '14 at 21:42