congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
LogFactory.getLog
Code IndexAdd Tabnine 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)

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

  • Finding current android device location
  • onRequestPermissionsResult (Fragment)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • Font (java.awt)
    The Font class represents fonts, which are used to render text in a visible way. A font provides the
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • JPanel (javax.swing)
  • Github Copilot alternatives
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