本文整理了Java中software.amazon.awssdk.utils.Logger.info()
方法的一些代码示例,展示了Logger.info()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Logger.info()
方法的具体详情如下:
包路径:software.amazon.awssdk.utils.Logger
类名称:Logger
方法名:info
[英]Checks if info is enabled and if so logs the supplied message
[中]检查信息是否启用,如果启用,则记录提供的消息
代码示例来源:origin: aws/aws-sdk-java-v2
private void copyFile(Path source, Path destination) throws IOException {
if (source != null && Files.isRegularFile(source)) {
log.info(() -> "Copying " + source + " to " + destination);
FileUtils.copyFile(source.toFile(), destination.toFile());
}
}
}
代码示例来源:origin: aws/aws-sdk-java-v2
log.info(() -> "Got expected response: " + result);
return result;
} else if (whenToFail.test(result)) {
log.info(() -> "Attempt " + unsuccessfulAttempt + " failed predicate.");
} catch (RuntimeException e) {
Throwable t = e instanceof CompletionException ? e.getCause() : e;
log.info(() -> "Got expected exception: " + t.getClass().getSimpleName());
return null;
log.info(() -> "Attempt " + unsuccessfulAttempt +
" failed with an expected exception (" + t.getClass() + ")");
} else {
代码示例来源:origin: software.amazon.awssdk/test-utils
log.info(() -> "Got expected response: " + result);
return result;
} else if (whenToFail.test(result)) {
log.info(() -> "Attempt " + unsuccessfulAttempt + " failed predicate.");
} catch (RuntimeException e) {
Throwable t = e instanceof CompletionException ? e.getCause() : e;
log.info(() -> "Got expected exception: " + t.getClass().getSimpleName());
return null;
log.info(() -> "Attempt " + unsuccessfulAttempt +
" failed with an expected exception (" + t.getClass() + ")");
} else {
内容来源于网络,如有侵权,请联系作者删除!