Add way to change Liquibase loglevel from Ant integration

Description

There currently doesn't appear to be a way to modify the loglevel when using the Ant integration tasks for liquibase as there is for from the commandline, i.e. '--logLevel <>'

I tried creating a prop file with the loglevel setting - this does not seem to work with the Ant tasks, although I'm not sure what the "current directory" means in that context.

Environment

Ant 1.8+

Activity

Show:
Nathan Voxland
October 22, 2013, 8:49 PM

There is already a logLevel ant property that allows setting what level liquibase logs at.

Simon Cruise
March 22, 2019, 4:22 PM

It appears from the documentation that the updateDatabase target should support an attribute logLevel

But when added I am getting

updateDatabase doesn't support the "logLevel" attribute

An example :

{{<updateDatabase changeLogFile="${db.changelog.file}"
dropFirst="false"
classpathref="lb-classpath"
promptOnNonLocalDatabase="Warning : Altering remote DB"
contexts="${build.platform.name}"
logLevel="warn">
<database driver="com.mysql.jdbc.Driver"
url="${db.url}"
user="${db.user.name}"
password="${db.password}"/>

</updateDatabase>}}

Without logLevel it is working fine but since upgrading from Version 2.x there is a log point for every SQL query generated.

Reporter

Fred Brunner

Components

Affects versions

Priority

Minor
Configure