Quantcast
Viewing all articles
Browse latest Browse all 2993

Re : Liquibase spring bean "log" property

I am not sure about the log property. I don't see it on the SpringLiquibase class or the Liquibase class. I can give you a bit of info on how to get logging routing to Log4J.

Liquibase 3.x has its own logging implementation that uses no external logging dependencies. The default logger logs to standard out (which is what I suspect you are seeing now). In order to route Liquibase logs to another logging framework you need to place an adapter jar on your classpath. I did some searching and found a couple of links about the log4j logging adapter:

Maven Central - Log4j Liquibase
Liqubase Wiki on Logging extensions

If you are using SLF4J as a logging facade there is also an extension to route Liquibase logs to that (Full Disclosure: I wrote that library).

Github - liquibase-slf4j

Once the adapter jar is on your classpath, the configuration you have defined above should start to function as you expect.

I hope this helps.

Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>