Liquibase 3.6.3和3.7.0的所有日志从ANT运行时,日志以前在KB范围内,现在它们在MB范围内。 :-(
在ant命令中放置日志级别的文档解决方案不起作用,因为它不再是xml模式的一部分,我收到此消息:
liquibase:updateDatabase不支持“ logLevel”属性
更改蚂蚁的日志级别也无济于事。
我不希望将SQL的每一行输出到日志中,有时它们的数量很多...
http://www.liquibase.org/documentation/ant/updatedatabase_ant_task.html
Ant XML片段
<target name="upgrade">
<liquibase:database id="my-database-ref"
driver="${db.driver}" url="${my.database.url}"
user="${my.database.username}" password="${my.database.password}"
defaultSchemaName="dbo" liquibaseSchemaName="dbo"
/>
<liquibase:updateDatabase
databaseref="my-database-ref"
changeLogFile="Scripts/upgrade.xml"
contexts="${database.contexts}"
classpathref="liquibasetasks.classpath"
logLevel="INFO"
>
<liquibase:changeLogParameters>
<liquibase:changeLogParameter name="version" value="${version}"/>
<propertyset>
<propertyref prefix="database.user"/>
</propertyset>
</liquibase:changeLogParameters>
</liquibase:updateDatabase>
</target>
如果不建议使用logLevel,什么控制日志级别?它似乎已被固定在最高级别。
例如,它一开始只记录以下内容
[liquibase:updateDatabase] Starting Liquibase.
[liquibase:updateDatabase] Successfully acquired change log lock
现在它记录了所有单独的sql调用
[liquibase:updateDatabase] Starting Liquibase.
[liquibase:updateDatabase] select schema_name()
[liquibase:updateDatabase] SELECT CASE ServerProperty('EngineEdition')
[liquibase:updateDatabase] WHEN 1 THEN 'Personal'
[liquibase:updateDatabase] WHEN 2 THEN 'Standard'
[liquibase:updateDatabase] WHEN 3 THEN 'Enterprise'
[liquibase:updateDatabase] WHEN 4 THEN 'Express'
[liquibase:updateDatabase] WHEN 5 THEN 'Azure'
[liquibase:updateDatabase] ELSE 'Unknown'
[liquibase:updateDatabase] END
[liquibase:updateDatabase] select schema_name()
[liquibase:updateDatabase] SELECT COUNT(*) FROM DATABASECHANGELOGLOCK
[liquibase:updateDatabase] select schema_name()
[liquibase:updateDatabase] SELECT COUNT(*) FROM DATABASECHANGELOGLOCK
[liquibase:updateDatabase] select schema_name()
[liquibase:updateDatabase] SELECT LOCKED FROM DATABASECHANGELOGLOCK WHERE ID=1
[liquibase:updateDatabase] select schema_name()
[liquibase:updateDatabase] Successfully acquired change log lock