Codota Logo
LogFactory.getLog
Code IndexAdd Codota to your IDE (free)

How to use
getLog
method
in
liquibase.logging.LogFactory

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
StringBuilder s =
  • Codota Iconnew StringBuilder()
  • Codota Iconnew StringBuilder(32)
  • Codota IconString str;new StringBuilder(str)
  • Smart code suggestions by Codota
}
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: org.xipki.tk/database-tool

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

Popular methods of LogFactory

  • getInstance
  • getLogger
  • setInstance
  • setDefaultLoggingLevel

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • putExtra (Intent)
  • runOnUiThread (Activity)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • DecimalFormat (java.text)
    DecimalFormat is a concrete subclass ofNumberFormat that formats decimal numbers. It has a variety o
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Notification (javax.management)
  • JOptionPane (javax.swing)
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now