本文整理了Java中org.tinygroup.logger.Logger.debugMessage()
方法的一些代码示例,展示了Logger.debugMessage()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.debugMessage()
方法的具体详情如下:
包路径:org.tinygroup.logger.Logger
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!