本文整理汇总了Java中liquibase.logging.LogFactory.setLoggingLevel方法的典型用法代码示例。如果您正苦于以下问题:Java LogFactory.setLoggingLevel方法的具体用法?Java LogFactory.setLoggingLevel怎么用?Java LogFactory.setLoggingLevel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类liquibase.logging.LogFactory
的用法示例。
在下文中一共展示了LogFactory.setLoggingLevel方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AbstractIntegrationTest
import liquibase.logging.LogFactory; //导入方法依赖的package包/类
protected AbstractIntegrationTest(String changelogDir, String url) throws Exception {
LogFactory.setLoggingLevel("info");
this.completeChangeLog = "changelogs/" + changelogDir + "/complete/root.changelog.xml";
this.rollbackChangeLog = "changelogs/" + changelogDir + "/rollback/rollbackable.changelog.xml";
this.includedChangeLog = "changelogs/" + changelogDir + "/complete/included.changelog.xml";
this.encodingChangeLog = "changelogs/common/encoding.changelog.xml";
this.externalfkInitChangeLog= "changelogs/common/externalfk.init.changelog.xml";
this.externalEntityChangeLog= "changelogs/common/externalEntity.changelog.xml";
this.externalEntityChangeLog2= "com/example/nonIncluded/externalEntity.changelog.xml";
this.invalidReferenceChangeLog= "changelogs/common/invalid.reference.changelog.xml";
this.objectQuotingStrategyChangeLog = "changelogs/common/object.quoting.strategy.changelog.xml";
this.url = url;
ServiceLocator.getInstance().setResourceAccessor(TestContext.getInstance().getTestResourceAccessor());
}
示例2: setUp
import liquibase.logging.LogFactory; //导入方法依赖的package包/类
/**
* Initialization for each test.
*/
@SuppressWarnings("deprecation")
@BeforeTest
public void setUp() throws Exception {
LogFactory.setLoggingLevel("debug");
}
示例3: HanaIntegrationTest
import liquibase.logging.LogFactory; //导入方法依赖的package包/类
public HanaIntegrationTest() throws Exception {
super("hana", "jdbc:sap://"+ getDatabaseServerHostname("hana") +"/?reconnect=true&autocommit=false");
LogFactory.setLoggingLevel("debug");
}