Tabnine Logo
LogFactory.setInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
setInstance
method
in
liquibase.logging.LogFactory

Best Java code snippets using liquibase.logging.LogFactory.setInstance (Showing top 3 results out of 315)

origin: com.blazebit/blaze-weblink-core-model

private Liquibase getLiquibase(Connection connection) throws Exception {
  ServiceLocator sl = ServiceLocator.getInstance();
  if (!System.getProperties().containsKey("liquibase.scan.packages")) {
    if (sl.getPackages().remove("liquibase.core")) {
      sl.addPackageToScan("liquibase.core.xml");
    }
    if (sl.getPackages().remove("liquibase.parser")) {
      sl.addPackageToScan("liquibase.parser.core.xml");
    }
    if (sl.getPackages().remove("liquibase.serializer")) {
      sl.addPackageToScan("liquibase.serializer.core.xml");
    }
    sl.getPackages().remove("liquibase.ext");
    sl.getPackages().remove("liquibase.sdk");
  }
  LogFactory.setInstance(new LogWrapper());
  Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(connection));
  return new Liquibase(CHANGELOG, new ClassLoaderResourceAccessor(getClass().getClassLoader()), database);
}
origin: org.keycloak/keycloak-connections-jpa-liquibase

private Liquibase getLiquibase(Connection connection, String defaultSchema) throws Exception {
  ServiceLocator sl = ServiceLocator.getInstance();
  if (!System.getProperties().containsKey("liquibase.scan.packages")) {
    if (sl.getPackages().remove("liquibase.core")) {
      sl.addPackageToScan("liquibase.core.xml");
    }
    if (sl.getPackages().remove("liquibase.parser")) {
      sl.addPackageToScan("liquibase.parser.core.xml");
    }
    if (sl.getPackages().remove("liquibase.serializer")) {
      sl.addPackageToScan("liquibase.serializer.core.xml");
    }
    sl.getPackages().remove("liquibase.ext");
    sl.getPackages().remove("liquibase.sdk");
  }
  LogFactory.setInstance(new LogWrapper());
  Database database = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(connection));
  if (defaultSchema != null) {
    database.setDefaultSchemaName(defaultSchema);
  }
  return new Liquibase(CHANGELOG, new ClassLoaderResourceAccessor(getClass().getClassLoader()), database);
}
origin: org.keycloak/keycloak-model-jpa

protected void baseLiquibaseInitialization() {
  ServiceLocator sl = ServiceLocator.getInstance();
  sl.setResourceAccessor(new ClassLoaderResourceAccessor(getClass().getClassLoader()));
  if (!System.getProperties().containsKey("liquibase.scan.packages")) {
    if (sl.getPackages().remove("liquibase.core")) {
      sl.addPackageToScan("liquibase.core.xml");
    }
    if (sl.getPackages().remove("liquibase.parser")) {
      sl.addPackageToScan("liquibase.parser.core.xml");
    }
    if (sl.getPackages().remove("liquibase.serializer")) {
      sl.addPackageToScan("liquibase.serializer.core.xml");
    }
    sl.getPackages().remove("liquibase.ext");
    sl.getPackages().remove("liquibase.sdk");
    String lockPackageName = DummyLockService.class.getPackage().getName();
    logger.debugf("Added package %s to liquibase", lockPackageName);
    sl.addPackageToScan(lockPackageName);
  }
  LogFactory.setInstance(new LogWrapper());
  // Adding PostgresPlus support to liquibase
  DatabaseFactory.getInstance().register(new PostgresPlusDatabase());
  // Adding newer version of MySQL/MariaDB support to liquibase
  DatabaseFactory.getInstance().register(new UpdatedMySqlDatabase());
  // Change command for creating lock and drop DELETE lock record from it
  SqlGeneratorFactory.getInstance().register(new CustomInsertLockRecordGenerator());
  // Use "SELECT FOR UPDATE" for locking database
  SqlGeneratorFactory.getInstance().register(new CustomLockDatabaseChangeLogGenerator());
}
liquibase.loggingLogFactorysetInstance

Popular methods of LogFactory

  • getInstance
  • getLog
  • getLogger
  • setDefaultLoggingLevel

Popular in Java

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • ReentrantLock (java.util.concurrent.locks)
    A reentrant mutual exclusion Lock with the same basic behavior and semantics as the implicit monitor
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now