How to enable DEBUG logs in Flyway?

kpldvnpne

Kapildev Neupane

Posted on May 12, 2024

How to enable DEBUG logs in Flyway?
  1. Enable all DEBUG logs created by org.flywaydb Your SQL and Java-based migrations are all run by code inside org.flywaydb. Hence, if you want to debug what's wrong with your SQL/Java-based migrations, you can enable logging in org.flywaydb by including the following in your profile's application.yml file.
logging:
  level:
    org:
      flywaydb: DEBUG
Enter fullscreen mode Exit fullscreen mode
  1. Enable all DEBUG logs created by your Java-based migrations If you have Java-based migration in your repository, and want to debug it, enable debug logs by including this in your profile's application.yml file:
logging:
  level:
    db:
      migration: DEBUG
Enter fullscreen mode Exit fullscreen mode

NOTE: You need to have them placed in src/main/db/migration for this to work.

💖 💪 🙅 🚩
kpldvnpne
Kapildev Neupane

Posted on May 12, 2024

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related