org.tinygroup.logger.Logger.debugMessage()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(106)

本文整理了Java中org.tinygroup.logger.Logger.debugMessage()方法的一些代码示例,展示了Logger.debugMessage()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debugMessage()方法的具体详情如下:
包路径:org.tinygroup.logger.Logger
类名称:Logger
方法名:debugMessage

Logger.debugMessage介绍

暂无

代码示例

代码示例来源:origin: org.tinygroup/org.tinygroup.databasechange

private Properties parsePropertiesFile() {
  InputStream is = DatabaseInstallerStart.class.getClassLoader()
      .getResourceAsStream(PROPERTIES_CONFIG);
  if (is == null) {
    return null;
  }
  try {
    toolProps = new Properties();
    BufferedReader bf = new BufferedReader(new InputStreamReader(is, "UTF-8"));
    toolProps.load(bf);
    return toolProps;
  } catch (UnsupportedEncodingException e) {
    LOGGER.debugMessage("无法解析配置文件[%s]", e, PROPERTIES_CONFIG);
  } catch (IOException e) {
    LOGGER.debugMessage("找不到配置文件[%s],将试图获取application.xml配置", e, PROPERTIES_CONFIG);
  }
  return null;
}

代码示例来源:origin: org.tinygroup/org.tinygroup.database

/**
   * @param connection
   * @param table
   * @return
   * @throws SQLException
   */
  protected ResultSet getDbForeignRsSql(Connection connection, Table table) throws SQLException {
    try {
      return connection.getMetaData()
          .getImportedKeys(connection.getCatalog(), null, dealTableName(table.getNameWithOutSchema()));
    } catch (SQLException e) {
      logger.debugMessage("该表没有外键", e);
      return null;
    }
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.remoteconfig.zk

/**
 * 重新获取远程配置
 * @param m
 */
public void retrieveRemoteConfig(Map<String, String> m){
  Map<String, ConfigValue> newConfigMap = getAll();
  for (String key : newConfigMap.keySet()) {
    if (newConfigMap.get(key) == null || newConfigMap.get(key).getValue() == null) {
      continue;
    }
    String value = newConfigMap.get(key).getValue();
    LOGGER.debugMessage("[{0} = {1}]", key, value);
    Boolean encrypt = newConfigMap.get(key).getEncrypt();
    if(encrypt){
      try {
        value = EncryptUtil.getInstance().getCryptor().decrypt(value);
      } catch (Exception e) {
        throw new RuntimeException(String.format("解密远程配置项[%s]的值,失败!", key),e);
      }
    }
    m.put(key, value);
  }
}

代码示例来源:origin: org.tinygroup/org.tinygroup.sqlexecutor

@Override
public SqlParsedResult parse(DatabaseType databaseType, String sql,
          Context context) {
  LOGGER.debugMessage("Logic SQL: {0}", sql);
  SQLStatementParser sqlStatementParser = getSQLStatementParser(
      databaseType, sql);
  List<SQLStatement> sqlStatements = sqlStatementParser
      .parseStatementList();
  Assert.assertTrue(sqlStatements.size() == 1,
      "the length of sqlStatements must be one");
  SQLStatement sqlStatement = sqlStatements.get(0);
  LOGGER.debugMessage("Get {0} SQL Statement", sqlStatement.getClass()
      .getName());
  SQLASTOutputVisitor visitor = getSQLVisitor(databaseType, sqlStatement);
  Preconditions.checkArgument(visitor instanceof SQLVisitor);
  SQLVisitor sqlVisitor = (SQLVisitor) visitor;
  sqlVisitor.setContext(context);
  sqlStatement.accept(visitor);
  SqlParsedResult parsedResult=sqlVisitor.getParsedResult();
  parsedResult.setSqlBuilder(sqlVisitor.getSQLBuilder());
  parsedResult.setSqlStatementType(getType(sqlStatement));
  return parsedResult;
}

代码示例来源:origin: org.tinygroup/org.tinygroup.database

preparedStatement.close();
} catch (SQLException e) {
  logger.debugMessage("preparedStatement关闭失败", e);

相关文章