Hi Developers,
In 3.0.5 release, I found some strange behaviour with logging. First of all, your 2 new methods in liquibase.logging.Logger interface breaked all known Logger implementations, causing exceptions like this:
java.lang.AbstractMethodError: liquibase.ext.logging.slf4j.Slf4jLogger.setChangeLog(Lliquibase/changelog/DatabaseChangeLog;)V
at liquibase.changelog.ChangeLogIterator.run(ChangeLogIterator.java:44)
at liquibase.changelog.DatabaseChangeLog.validate(DatabaseChangeLog.java:144)
at liquibase.Liquibase.update(Liquibase.java:133)
at com.jpatry.schemautils.LiquibaseHibernateDiffTool.applyFullChangelog(LiquibaseHibernateDiffTool.java:118)
at com.jpatry.schemautils.LiquibaseHibernateDiffTool.main(LiquibaseHibernateDiffTool.java:78)
Second: when I removed all third-party logger packages, some strange null-s appeard in the log:
INFO 2013.09.28. 10:35:liquibase: null: null: Successfully acquired change log lock
INFO 2013.09.28. 10:35:liquibase: null: null: Creating database history table with name: PUBLIC.DATABASECHANGELOG
INFO 2013.09.28. 10:35:liquibase: null: null: Reading from PUBLIC.DATABASECHANGELOG
INFO 2013.09.28. 10:35:liquibase: null: null: Reading from PUBLIC.DATABASECHANGELOG
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml::1376422807437-1::Erdei Zoltan (generated): Table EMPLOYEE created
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml::1376422807437-1::Erdei Zoltan (generated): ChangeSet C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml::1376422807437-1::Erdei Zoltan (generated) ran successfully in 16ms
Third: when another changelog file (changelog2.xml) starts, the default logger remembers, and writes the first changelog file:
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml: null: Successfully acquired change log lock
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml: null: Creating database history table with name: PUBLIC.DATABASECHANGELOG
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml: null: Reading from PUBLIC.DATABASECHANGELOG
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/src/main/resources/database/changelog.xml: null: Reading from PUBLIC.DATABASECHANGELOG
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/changelog2.xml: C:/Development/JpaLiquibase3Try/changelog2.xml::1376422807437-1-22::Erdei Zoltan (generated): Table EMPLOYEE created
INFO 2013.09.28. 10:35:liquibase: C:/Development/JpaLiquibase3Try/changelog2.xml: C:/Development/JpaLiquibase3Try/changelog2.xml::1376422807437-1-22::Erdei Zoltan (generated): ChangeSet C:/Development/JpaLiquibase3Try/changelog2.xml::1376422807437-1-22::Erdei Zoltan (generated) ran successfully in 0ms
(I think all of these could be fixed by finding another way to write the actual changeLog/changeSet information, not involving the Logger to store it - just my opinion)
Thanks,
Zoltán