如何在liquibase版本3.6.3中更改日志记录级别

时间:2019-08-29 14:31:21

标签: liquibase

我不希望发布此问题,因为已经要求使用许多版本的liquibase,但无法更改版本3.6.3的日志记录级别。我尝试了其他版本的建议,但没有成功...

POM:

<liquibase.logging>INFO</liquibase.logging>

<plugin>
    <groupId>org.liquibase</groupId>
    <artifactId>liquibase-maven-plugin</artifactId>
    <version>${liquibase.version}</version>
    <configuration>
        <logging>${liquibase.logging}</logging>
        ...
    </configuration>

当我运行mvn时,我仍然会从Liquibase获得调试级别的消息

07:09:29.541 [main] DEBUG liquibase.servicelocator.DefaultPackageScanClassResolver - Searching for all classes in package: liquibase/change using classloader: org.codehaus.plexus.classworlds.realm.ClassRealm
07:09:29.541 [main] DEBUG liquibase.servicelocator.DefaultPackageScanClassResolver - Getting resource URL for package: liquibase/change with classloader: ClassRealm[plugin>org.liquibase:liquibase-maven-plugin:3.6.3, parent: sun.misc.Launcher$AppClassLoader@7852e922]
07:09:29.542 [main] DEBUG liquibase.servicelocator.DefaultPackageScanClassResolver - URL from classloader: jar:file:/home/xxxxxxxxxxxxxx/.m2/repository/org/liquibase/liquibase-core/3.6.3/liquibase-core-3.6.3.jar!/liquibase/change/
07:09:29.543 [main] DEBUG liquibase.servicelocator.DefaultPackageScanClassResolver - Decoded urlPath: file:/home/xxxxxxxxxxxxxx/.m2/repository/org/liquibase/liquibase-core/3.6.3/liquibase-core-3.6.3.jar!/liquibase/change/ with protocol: jar0
etc.

我还在mvn命令行上尝试了-Dliquibase.logging = info,并且得到了相同的结果。

1 个答案:

答案 0 :(得分:0)

有许多与Liquibase 3.6.x登录有关的错误。这些已在版本3.8.1和更高版本中修复。