Closed as not planned
Closed as not planned
Description
I would like to add lifecycle logging before, after, as well as on failed migrations.
To implement this, I planned to register a liquibase.changelog.visitor.ChangeExecListener on the Liquibase instance.
I found that the SpringLiquibase initialization bean fully encapsulates the migration.
So, to register an ChangeExecListener in the Liquibase instance, I only see the option to:
- Inherit SpringLiquibase and override createLiquibase.
- Copy the LiquibaseAutoConfiguration into our codebase and return the inherited SpringLiquibase in LiquibaseAutoConfiguration.LiquibaseConfiguration#createSpringLiquibase.
Versions used:
- Spring Boot: 3.1.4
- Liquibase: 4.22.0
Do you know of any other way to register custom logic, such as logging before, after, and on failed migrations?