Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Liquibase logging level in Spring Boot

I'm using Spring Boot and liquibase for database migrations and refactorings.

I'm having some exceptions (mostly database exception) in my changesets every now and then, but liquibase shares too little information in the default log level. For example it doesn't tell me the exact SQL statement it executed or the name of the CSV file it was processing when it failed.

Do you know any way to configure liquibase's logLevel to DEBUG either through Spring Boot's application.properties or any other non-painful way?

I tried the logging.level.* setting in various combinations but it didn't work.

like image 549
Kostas Filios Avatar asked May 05 '15 08:05

Kostas Filios


1 Answers

It's a limitation of Spring Boot's code that adapts Liquibase's own logging framework to use Commons Logging. I've opened an issue so that we can improve the adapter.

Now that the issue has been fixed, you can use logging.level.liquibase to control the level of Liquibase logging that will be output.

like image 89
Andy Wilkinson Avatar answered Sep 27 '22 21:09

Andy Wilkinson