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

How to use
getInstance
method
in
liquibase.logging.LogFactory

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

origin: zanata/zanata-platform

  @Override
  public void executeStatements(Change change, DatabaseChangeLog changeLog,
      List<SqlVisitor> sqlVisitors) throws LiquibaseException {
    if (getConnection() != null) {
      // don't log if running offline
      Logger log = LogFactory.getInstance().getLog();
      log.info("Executing " + change.getClass().getSimpleName());
    }
    super.executeStatements(change, changeLog, sqlVisitors);
  }
}
origin: OpenClinica/OpenClinica

public Set<InputStream> getResourcesAsStream(String path) throws IOException {
  if (path == null) {
    return null;
  } else {
    Set<InputStream> returnSet = new HashSet();
    Resource[] resources = ResourcePatternUtils.getResourcePatternResolver(CustomSpringLiquibase.this.getResourceLoader()).getResources(this.adjustClasspath(path));
    if (resources != null && resources.length != 0) {
      Resource[] arr$ = resources;
      int len$ = resources.length;
      for(int i$ = 0; i$ < len$; ++i$) {
        Resource resource = arr$[i$];
        LogFactory.getInstance().getLog().debug("Opening " + resource.getURL().toExternalForm() + " as " + path);
        URLConnection connection = resource.getURL().openConnection();
        connection.setUseCaches(false);
        returnSet.add(connection.getInputStream());
      }
      return returnSet;
    } else {
      return null;
    }
  }
}
origin: org.xipki.tk/database-tool

public void changeLogLevel(final String logLevel, String logFile)
    throws CommandLineParsingException {
  Objects.requireNonNull(logLevel, "logLevel must not be null");
  try {
    Logger log = LogFactory.getInstance().getLog();
    if (logFile != null && logFile.length() > 0) {
      log.setLogLevel(logLevel, logFile);
    } else {
      log.setLogLevel(logLevel);
    }
  } catch (IllegalArgumentException ex) {
    throw new CommandLineParsingException(ex.getMessage(), ex);
  }
}
origin: OpenClinica/OpenClinica

    LogFactory.getInstance().getLog().warning("No Liquibase-Packages entry found in MANIFEST.MF. Using fallback of entire 'liquibase' package");
    liquibasePackages.add("liquibase");
LogFactory.getInstance().getLog().warning("Error initializing SpringLiquibase", var21);
origin: org.xipki.tk/database-tool

public void shutdown() {
  try {
    if (database != null) {
      database.rollback();
      database.close();
    }
  } catch (DatabaseException ex) {
    LogFactory.getInstance().getLog().warning("problem closing connection", ex);
  } finally {
    database = null;
    liquibase = null;
  }
}
origin: liquibase/liquibase-hibernate

  @Override
  protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder(PersistenceUnitDescriptor persistenceUnitDescriptor, Map integration, ClassLoader providedClassLoader) {
    try {
      setField(persistenceUnitDescriptor, "jtaDataSource", null);
      setField(persistenceUnitDescriptor, "transactionType", PersistenceUnitTransactionType.RESOURCE_LOCAL);
    } catch (Exception ex) {
      LogFactory.getInstance().getLog().severe(null, ex);
    }
    return super.getEntityManagerFactoryBuilder(persistenceUnitDescriptor, integration, providedClassLoader);
  }
}
origin: zanata/zanata-platform

@Override
public Sql[] generateSql(CreateTableStatement statement, Database database,
    SqlGeneratorChain sqlGeneratorChain) {
  Logger log = LogFactory.getInstance().getLog();
origin: com.walmartlabs.concord.server/concord-server-db

private static void migrateDb(Connection conn, String logPath, String logTable, String lockTable) throws Exception {
  LogFactory.getInstance().setDefaultLoggingLevel(LogLevel.WARNING);
  Database db = DatabaseFactory.getInstance().findCorrectDatabaseImplementation(new JdbcConnection(conn));
  db.setDatabaseChangeLogTableName(logTable);
  db.setDatabaseChangeLogLockTableName(lockTable);
  Liquibase lb = new Liquibase(logPath, new ClassLoaderResourceAccessor(), db);
  lb.update((String) null);
}
origin: org.xipki.tk/database-tool

  database.close();
} catch (Exception e2) {
  LogFactory.getInstance().getLog().warning("problem closing connection", ex);
liquibase.loggingLogFactorygetInstance

Popular methods of LogFactory

  • getLog
  • getLogger
  • setInstance
  • setDefaultLoggingLevel

Popular in Java

  • Creating JSON documents from java classes using gson
  • runOnUiThread (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • 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